1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

TabTreeModel: Ignore dropping child on its parent

This commit is contained in:
David Rosca 2018-02-04 15:58:36 +01:00
parent aa332a4ed2
commit fbbe3c6385
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

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