Skip to content
Permalink
Browse files

Show style name also in raster properties dialog title

  • Loading branch information
m-kuhn committed Dec 18, 2017
1 parent 944b587 commit d85aef70da96afa29158265696d6f057cd439055
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgsrasterlayerproperties.cpp
@@ -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

0 comments on commit d85aef7

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