Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix layers getting deselected when starting transform

Luna Lovecraftf108829b4869
diff --git a/plugins/dockers/layerdocker/NodeView.cpp b/plugins/dockers/layerdocker/NodeView.cpp
index 8b329d481b..db80a5ba73 100644
--- a/plugins/dockers/layerdocker/NodeView.cpp
+++ b/plugins/dockers/layerdocker/NodeView.cpp
@@ -612,4 +612,6 @@ void NodeView::setExclusiveActiveItem(QModelIndex index)
d->ignoreDataChanged = true;
mdl->setData(index, true, KisNodeModel::ActiveRole);
+
+ selectionModel()->setCurrentIndex(index, QItemSelectionModel::NoUpdate);
}