Skip to content

Commit

Permalink
Don't show profile name in title bar for default profile
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 10, 2018
1 parent 6b5dfce commit 709702d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 709702d

Please sign in to comment.