1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[Bookmarks] Fixed migrating bookmarks

Folders in unsorted bookmarks were lost during migration
This commit is contained in:
nowrep 2014-02-10 21:12:08 +01:00
parent 018d7ec098
commit 0b8b969535

View File

@ -363,7 +363,8 @@ bool BookmarksTools::migrateBookmarksIfNecessary(Bookmarks* bookmarks)
const QString title = query.value(0).toString(); const QString title = query.value(0).toString();
bool subfolder = query.value(1).toString() == QLatin1String("yes"); bool subfolder = query.value(1).toString() == QLatin1String("yes");
BookmarkItem* folder = new BookmarkItem(BookmarkItem::Folder, subfolder ? bookmarks->toolbarFolder() : 0); BookmarkItem* parent = subfolder ? bookmarks->toolbarFolder() : bookmarks->unsortedFolder();
BookmarkItem* folder = new BookmarkItem(BookmarkItem::Folder, parent);
folder->setTitle(title); folder->setTitle(title);
folders.insert(folder->title(), folder); folders.insert(folder->title(), folder);
} }