Skip to content

Commit 2eaa0b7

Browse files
committedDec 9, 2016
fix #15947 style dock is not refreshed when map layer style changes
1 parent 7722f88 commit 2eaa0b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/qgsmaplayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
8686
mScaleBasedVisibility = false;
8787

8888
connect( this, SIGNAL( nameChanged() ), this, SIGNAL( layerNameChanged() ) );
89+
90+
connect( mStyleManager, &QgsMapLayerStyleManager::currentStyleChanged, this, &QgsMapLayer::styleChanged );
8991
}
9092

9193
QgsMapLayer::~QgsMapLayer()

0 commit comments

Comments
 (0)
Please sign in to comment.