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:
parent
018d7ec098
commit
0b8b969535
@ -363,7 +363,8 @@ bool BookmarksTools::migrateBookmarksIfNecessary(Bookmarks* bookmarks)
|
||||
const QString title = query.value(0).toString();
|
||||
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);
|
||||
folders.insert(folder->title(), folder);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user