mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix: Folder disappears when moving it onto itself
Happens on BookmarksToolbar. BUG: 462891 FIXED-IN: 23.04.0 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
06d9b5f204
commit
bb533f47c0
@ -428,6 +428,10 @@ void BookmarksToolbarButton::dropEvent(QDropEvent *event)
|
||||
if (mime->hasFormat(BookmarksButtonMimeData::mimeType())) {
|
||||
const auto* bookmarkMime = static_cast<const BookmarksButtonMimeData*>(mime);
|
||||
bookmark = bookmarkMime->item();
|
||||
|
||||
if (m_bookmark == bookmark) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
const QUrl url = mime->urls().at(0);
|
||||
const QString title = mime->hasText() ? mime->text() : url.toEncoded(QUrl::RemoveScheme);
|
||||
|
Loading…
Reference in New Issue
Block a user