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

Fixed issue with creating internal bookmark folders.

closes #408
This commit is contained in:
nowrep 2012-06-06 10:16:11 +02:00
parent 4375b54b5c
commit 26e814933c

View File

@ -65,6 +65,10 @@ void BookmarksModel::setShowingOnlyIconsInToolbar(bool state)
bool BookmarksModel::isFolder(const QString &name)
{
if (name == "bookmarksToolbar" || name == "bookmarksMenu" || name == "unsorted") {
return true;
}
QSqlQuery query;
query.prepare("SELECT name FROM folders WHERE name = ?");
query.bindValue(0, name);