Skip to content

Commit

Permalink
Don't load UI theme if not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Aug 31, 2015
1 parent 46139d6 commit 5abb560
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,9 @@ void QgsOptions::iconSizeChanged( const QString &iconSize )

void QgsOptions::uiThemeChanged( const QString &theme )
{
if ( theme == QgsApplication::themeName() )
return;

QgsApplication::setUITheme( theme );
}

Expand Down Expand Up @@ -967,6 +970,8 @@ void QgsOptions::saveOptions()
{
QSettings settings;

settings.setValue( "UI/UITheme", cmbUITheme->currentText());

// custom environment variables
settings.setValue( "qgis/customEnvVarsUse", QVariant( mCustomVariablesChkBx->isChecked() ) );
QStringList customVars;
Expand Down

0 comments on commit 5abb560

Please sign in to comment.