From 66ec68656849221cf1be6f78d527c189bde06142 Mon Sep 17 00:00:00 2001 From: Christian Schuett Date: Mon, 16 Mar 2015 09:45:58 +0100 Subject: [PATCH] bookmark manager: avoid saving deleted entries to bookmark file --- src/gui/bookmarkmanager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/bookmarkmanager.cpp b/src/gui/bookmarkmanager.cpp index abe2ddbae..2707bd9c4 100644 --- a/src/gui/bookmarkmanager.cpp +++ b/src/gui/bookmarkmanager.cpp @@ -140,8 +140,6 @@ void CBookmarkManager::readBookmarkFile() { bookmarks.push_back(CBookmark(bookmarkname, bookmarkurl, bookmarktime)); } } - else - bookmarkfile.clear(); } //------------------------------------------------------------------------ @@ -149,6 +147,7 @@ void CBookmarkManager::writeBookmarkFile() { printf("CBookmarkManager: Writing bookmark file\n"); + bookmarkfile.clear(); unsigned int bookmarkcount = 0; for (std::vector::const_iterator it = bookmarks.begin(); it != bookmarks.end(); ++it, bookmarkcount++) {