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

BookmarkToolbar: Fix crash when adding a folder

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-04-09 15:59:52 +02:00
parent 5dd9599fce
commit 06d9b5f204
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Version 23.04.0
* History: Don't delete all items under dates when filtering
* AdBlock: Workaround for "Blocked content" page
* AddressBar: Search with default search engine by default
* Fix crash when adding new folder to the bookmark toolbar
Version 22.08.2
* Fix: Typing text in the search bar sends data although suggestions are disabled (by Juraj Oravec) (BUG: 439268)

View File

@ -187,7 +187,7 @@ void BookmarksToolbar::createNewFolder()
if (!name.isEmpty()) {
BookmarkItem* parent;
if (m_clickedBookmark) {
if (m_clickedBookmark && m_clickedBookmark->isFolder()) {
parent = m_clickedBookmark;
} else {
parent = m_bookmarks->toolbarFolder();