Skip to content

Commit 6528fc4

Browse files
committed
Fix Removing All File Bookmarks
Without this change, if you started Tangerine with some saved bookmarks and removed them all, the update would not be saved.
1 parent e7496a8 commit 6528fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tangerine/tangerine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,10 @@ void SaveBookmarks()
17891789
}
17901790
BookmarksFile.close();
17911791
}
1792+
else if (std::filesystem::exists(BookmarksPath))
1793+
{
1794+
std::filesystem::remove(BookmarksPath);
1795+
}
17921796
}
17931797

17941798

0 commit comments

Comments
 (0)