Skip to content

Commit 15cea44

Browse files
MrStevnschchwy
authored andcommitted
Only deselect layer if the index has changed
1 parent b655f89 commit 15cea44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core_lib/src/managers/layermanager.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ void LayerManager::setCurrentLayer(int layerIndex)
112112

113113
// Deselect frames of previous layer.
114114
Layer* previousLayer = currentLayer();
115-
previousLayer->deselectAll();
115+
if (previousLayer != object()->getLayer(layerIndex)) {
116+
previousLayer->deselectAll();
117+
}
116118

117119
emit currentLayerWillChange(layerIndex);
118120

0 commit comments

Comments
 (0)