Skip to content
Permalink
Browse files

Don't show profile name in title bar for default profile

  • Loading branch information
nyalldawson committed Mar 10, 2018
1 parent 6b5dfce commit 709702d568a8573e5890165ec88ecc3640168555
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgisapp.cpp
@@ -490,9 +490,10 @@ static void setTitleBarText_( QWidget &qgisApp )

if ( QgisApp::instance()->userProfileManager()->allProfiles().count() > 1 )
{
// add current profile
// add current profile (if it's not the default one)
QgsUserProfile *profile = QgisApp::instance()->userProfileManager()->userProfile();
caption += QStringLiteral( " [%1]" ).arg( profile->name() );
if ( profile->name() != QLatin1String( "default" ) )
caption += QStringLiteral( " [%1]" ).arg( profile->name() );
}

qgisApp.setWindowTitle( caption );

0 comments on commit 709702d

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