From 90bb424ef96cf6522be35d96e76a0c562a116e09 Mon Sep 17 00:00:00 2001 From: Philip McGrath Date: Wed, 22 Feb 2023 14:57:30 -0500 Subject: [PATCH] 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. --- tangerine/tangerine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tangerine/tangerine.cpp b/tangerine/tangerine.cpp index e0a47cc..1b4cf63 100644 --- a/tangerine/tangerine.cpp +++ b/tangerine/tangerine.cpp @@ -1789,6 +1789,10 @@ void SaveBookmarks() } BookmarksFile.close(); } + else if (std::filesystem::exists(BookmarksPath)) + { + std::filesystem::remove(BookmarksPath); + } }