Skip to content
Permalink
Browse files

Show the active layer in the layers dock header

  • Loading branch information
NathanW2 committed Apr 18, 2016
1 parent 32aee3d commit e2e3fba2973d8f2b442d451f97e021b472f57de1
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgisapp.cpp
@@ -9904,6 +9904,8 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )

if ( !layer )
{
mLayerTreeDock->setWindowTitle( tr( "Layers Panel" ) );

mActionSelectFeatures->setEnabled( false );
mActionSelectPolygon->setEnabled( false );
mActionSelectFreehand->setEnabled( false );
@@ -9977,6 +9979,8 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
return;
}

mLayerTreeDock->setWindowTitle( tr( "Layers Panel - %1" ).arg( layer->name() ) );

mActionLayerProperties->setEnabled( QgsProject::instance()->layerIsEmbedded( layer->id() ).isEmpty() );
mActionAddToOverview->setEnabled( true );
mActionZoomToLayer->setEnabled( true );

0 comments on commit e2e3fba

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