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

TabTreeModel: Fix reordering tabs in the same tree with drag&drop

This commit is contained in:
David Rosca 2018-02-05 15:34:02 +01:00
parent 5e2af2ff66
commit 67e82e8923
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -229,7 +229,7 @@ bool TabTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction action, in
if (!it || !parentItem) {
return false;
}
if (it->parent == parentItem) {
if (it->parent == parentItem && row < 0) {
return false;
}
if (!parentItem->tab) {