Skip to content

Commit

Permalink
Avoid another unnecessary styleChanged call
Browse files Browse the repository at this point in the history
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 4030390
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -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 ); } );
}

Expand Down

0 comments on commit 4030390

Please sign in to comment.