Skip to content
Permalink
Browse files

[Style Dock] Only disable the widget and not the dock

  • Loading branch information
NathanW2 committed May 11, 2016
1 parent ab288c6 commit 54e6eb341092ef59349ed8c7b2513a84d0100afc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -5532,11 +5532,11 @@ void QgisApp::setMapStyleDockLayer( QgsMapLayer* layer )
{
if ( !layer )
{
mMapStylingDock->setEnabled( false );
mMapStyleWidget->setEnabled( false );
return;
}

mMapStylingDock->setEnabled( true );
mMapStyleWidget->setEnabled( true );
// We don't set the layer if the dock isn't open mainly to save
// the extra work if it's not needed
if ( mMapStylingDock->isVisible() )

4 comments on commit 54e6eb3

@3nids

This comment has been minimized.

Copy link
Member

@3nids 3nids replied May 11, 2016

You've done a great job Nathan, thanks a lot for this.

One minor thing, once edited a symbol of a rule, other symbols get disabled and I can't edit the style anymore. I need to switch layer and back.

image

Do you have an idea?

@NathanW2

This comment has been minimized.

Copy link
Member Author

@NathanW2 NathanW2 replied May 11, 2016

@3nids

This comment has been minimized.

Copy link
Member

@3nids 3nids replied May 11, 2016

apparently, it's when I clicked a symbol in the legend entry. There is no more current layer selected in the legend, although the dock stays enabled. Whenever I change something, it probably looks for the active layer but there is no one.

@NathanW2

This comment has been minimized.

Copy link
Member Author

@NathanW2 NathanW2 replied May 11, 2016

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