Skip to content
Permalink
Browse files

Avoid another unnecessary styleChanged call

In all paths where QgsMapLayersStyleManager::currentStyleChanged
is emitted there is always a previous styleChanged signal emitted
by QgsMapLayer::importNamedStyle
  • Loading branch information
nyalldawson committed Oct 22, 2018
1 parent 844eada commit 4030390acc188b00c57b71e27a9601411b8d819d
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/core/qgsmaplayer.cpp
@@ -96,7 +96,6 @@ QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
connect( this, &QgsMapLayer::crsChanged, this, &QgsMapLayer::configChanged );
connect( this, &QgsMapLayer::nameChanged, this, &QgsMapLayer::configChanged );

connect( mStyleManager, &QgsMapLayerStyleManager::currentStyleChanged, this, &QgsMapLayer::styleChanged );
connect( mRefreshTimer, &QTimer::timeout, this, [ = ] { triggerRepaint( true ); } );
}

0 comments on commit 4030390

Please sign in to comment.
You can’t perform that action at this time.