1
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:
Juraj Oravec 2023-04-09 20:08:09 +02:00
parent 1985d23391
commit 5abf89f0be
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -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);