mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 23:50:58 +02:00
bookmark manager: avoid saving deleted entries to bookmark file
Origin commit data
------------------
Commit: 66ec686568
Author: Gaucho316 <Gaucho316@hotmail.com>
Date: 2015-03-16 (Mon, 16 Mar 2015)
This commit is contained in:
@@ -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