From 26e814933ccdd068333d7154e1e65a15eaffe099 Mon Sep 17 00:00:00 2001 From: nowrep Date: Wed, 6 Jun 2012 10:16:11 +0200 Subject: [PATCH] Fixed issue with creating internal bookmark folders. closes #408 --- src/lib/bookmarks/bookmarksmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/bookmarks/bookmarksmodel.cpp b/src/lib/bookmarks/bookmarksmodel.cpp index e29776529..8ea2cc9d6 100644 --- a/src/lib/bookmarks/bookmarksmodel.cpp +++ b/src/lib/bookmarks/bookmarksmodel.cpp @@ -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);