bookmark manager: avoid saving deleted entries to bookmark file

This commit is contained in:
Christian Schuett
2015-03-16 09:45:58 +01:00
committed by svenhoefer
parent 103274af75
commit 66ec686568

View File

@@ -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<CBookmark>::const_iterator it = bookmarks.begin(); it != bookmarks.end(); ++it, bookmarkcount++)
{