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

Bookmarks: Don't allow creating folder with translated name of "bookmarksToolbar", "bookmarksMenu" or "unsorted"!

This commit is contained in:
S. Razi Alavizadeh 2013-01-09 18:00:30 +03:30
parent 8f2b9a00e0
commit cc870ec451

View File

@ -66,7 +66,8 @@ void BookmarksModel::setShowingOnlyIconsInToolbar(bool state)
bool BookmarksModel::isFolder(const QString &name)
{
if (name == QLatin1String("bookmarksToolbar") || name == QLatin1String("bookmarksMenu")
|| name == QLatin1String("unsorted")) {
|| name == QLatin1String("unsorted") || name == _bookmarksToolbar
|| name == _bookmarksMenu || name == _bookmarksUnsorted) {
return true;
}