mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
TabTreeModel: Ignore dropping child on its parent
This commit is contained in:
parent
aa332a4ed2
commit
fbbe3c6385
@ -229,6 +229,9 @@ bool TabTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction action, in
|
||||
if (!it || !parentItem) {
|
||||
return false;
|
||||
}
|
||||
if (it->parent == parentItem) {
|
||||
return false;
|
||||
}
|
||||
if (!parentItem->tab) {
|
||||
tab->setParentTab(nullptr);
|
||||
if (row < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user