Merge pull request #5496 from spycrab/qt_fixtheme

Qt: Fix GetThemeDir()
This commit is contained in:
Leo Lam 2017-05-29 18:33:56 +02:00 committed by GitHub
commit 5d7f4cb9c8
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ Settings::Settings(QObject* parent) : QSettings(GetSettingsPath(), QSettings::In
QString Settings::GetThemeDir() const
{
QString theme_name = value(QStringLiteral("Theme"), QStringLiteral("Clean")).toString();
return QString::fromStdString(File::GetThemeDir(theme_name.toStdString()));
return QString::fromStdString(File::GetThemeDir(SConfig::GetInstance().theme_name));
}
QString Settings::GetResourcesDir() const