mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
bookmark manager: avoid saving deleted entries to bookmark file
This commit is contained in:
committed by
svenhoefer
parent
103274af75
commit
66ec686568
@@ -140,8 +140,6 @@ void CBookmarkManager::readBookmarkFile() {
|
|||||||
bookmarks.push_back(CBookmark(bookmarkname, bookmarkurl, bookmarktime));
|
bookmarks.push_back(CBookmark(bookmarkname, bookmarkurl, bookmarktime));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
bookmarkfile.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
@@ -149,6 +147,7 @@ void CBookmarkManager::writeBookmarkFile() {
|
|||||||
|
|
||||||
printf("CBookmarkManager: Writing bookmark file\n");
|
printf("CBookmarkManager: Writing bookmark file\n");
|
||||||
|
|
||||||
|
bookmarkfile.clear();
|
||||||
unsigned int bookmarkcount = 0;
|
unsigned int bookmarkcount = 0;
|
||||||
for (std::vector<CBookmark>::const_iterator it = bookmarks.begin(); it != bookmarks.end(); ++it, bookmarkcount++)
|
for (std::vector<CBookmark>::const_iterator it = bookmarks.begin(); it != bookmarks.end(); ++it, bookmarkcount++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user