Skip to content

Commit

Permalink
Show the active layer in the layers dock header
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Apr 18, 2016
1 parent 32aee3d commit e2e3fba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit e2e3fba

Please sign in to comment.