Skip to content

Commit

Permalink
Only deselect layer if the index has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns committed Aug 25, 2024
1 parent f2f1c31 commit f85237c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core_lib/src/managers/layermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void LayerManager::setCurrentLayer(int layerIndex)

// Deselect frames of previous layer.
Layer* previousLayer = currentLayer();
previousLayer->deselectAll();
if (previousLayer != object()->getLayer(layerIndex)) {
previousLayer->deselectAll();
}

emit currentLayerWillChange(layerIndex);

Expand Down

0 comments on commit f85237c

Please sign in to comment.