Skip to content

Commit

Permalink
Ensure layer style dock is updated when toggling legend items through
Browse files Browse the repository at this point in the history
layer tree menu

Fixes #40630

(cherry picked from commit 457d661)
  • Loading branch information
nyalldawson committed Feb 19, 2021
1 parent cb97971 commit 12ef9b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -416,6 +416,7 @@ void QgsSymbolLegendNode::toggleAllItems()
} }


emit dataChanged(); emit dataChanged();
vlayer->emitStyleChanged();
vlayer->triggerRepaint(); vlayer->triggerRepaint();
} }


Expand Down Expand Up @@ -453,6 +454,7 @@ void QgsSymbolLegendNode::checkAll( bool state )
} }


emit dataChanged(); emit dataChanged();
vlayer->emitStyleChanged();
vlayer->triggerRepaint(); vlayer->triggerRepaint();
} }


Expand Down

0 comments on commit 12ef9b5

Please sign in to comment.