mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +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
1985d23391
commit
5abf89f0be
@ -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