Skip to content

Commit 9bbbe6d

Browse files
committed
fix toggling of map styling dock visibility from the layer tree
1 parent 0875c68 commit 9bbbe6d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/qgisapp.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
722722
mMapStylingDock->setWindowTitle( tr( "Map Styling" ) );
723723
mMapStyleWidget = new QgsMapStylingWidget( mMapCanvas );
724724
mMapStylingDock->setWidget( mMapStyleWidget );
725-
726725
connect( mMapStyleWidget, SIGNAL( styleChanged( QgsMapLayer* ) ), this, SLOT( updateLabelToolButtons() ) );
726+
connect( mMapStylingDock, SIGNAL( visibilityChanged( bool ) ), mActionStyleDock, SLOT( setChecked( bool ) ) );
727727

728728
addDockWidget( Qt::RightDockWidgetArea, mMapStylingDock );
729729
mMapStylingDock->hide();
@@ -2768,7 +2768,6 @@ void QgisApp::initLayerTreeView()
27682768
mActionStyleDock->setToolTip( tr( "Open the map styling dock" ) );
27692769
mActionStyleDock->setIcon( QgsApplication::getThemeIcon( "propertyicons/symbology.png" ) );
27702770
connect( mActionStyleDock, SIGNAL( toggled( bool ) ), this, SLOT( mapStyleDock( bool ) ) );
2771-
connect( mMapStylingDock, SIGNAL( visibilityChanged( bool ) ), mActionStyleDock, SLOT( setChecked( bool ) ) );
27722771

27732772
// expand / collapse tool buttons
27742773
QAction* actionExpandAll = new QAction( tr( "Expand All" ), this );

0 commit comments

Comments
 (0)