Skip to content

Commit

Permalink
Show style name also in raster properties dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 18, 2017
1 parent 944b587 commit d85aef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanv
mResetColorRenderingBtn->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionUndo.svg" ) ) );

QString title = QString( tr( "Layer Properties - %1" ) ).arg( lyr->name() );

if ( !mRasterLayer->styleManager()->isDefault( mRasterLayer->styleManager()->currentStyle() ) )
title += QStringLiteral( " (%1)" ).arg( mRasterLayer->styleManager()->currentStyle() );
restoreOptionsBaseUi( title );
} // QgsRasterLayerProperties ctor

Expand Down

0 comments on commit d85aef7

Please sign in to comment.