Skip to content
Permalink
Browse files

Don't load UI theme if not changing

  • Loading branch information
NathanW2 committed Aug 31, 2015
1 parent 46139d6 commit 5abb560bc78e2f4f489709da649506fc8be1705a
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsoptions.cpp
@@ -938,6 +938,9 @@ void QgsOptions::iconSizeChanged( const QString &iconSize )

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

QgsApplication::setUITheme( theme );
}

@@ -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;

0 comments on commit 5abb560

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