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:
parent
8f2b9a00e0
commit
cc870ec451
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user