Commit 974fe9f8 authored by Daniel Teske's avatar Daniel Teske

Fix non standard wizard for default theme

Somehow a line "PreferredStyles =" is interpreted by QSettings
as a QStringList with a empty string.

Simply remove empty strings on reading the settings, as no
style can have that name.

Change-Id: If544e55f759c201d0621c71424a4ebedc8456d61
Task-number: QTCREATORBUG-15043
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarRobert Loehning <robert.loehning@theqtcompany.com>
parent 1921e568
......@@ -266,6 +266,7 @@ void Theme::readSettings(QSettings &settings)
{
d->name = settings.value(QLatin1String("ThemeName"), QLatin1String("unnamed")).toString();
d->preferredStyles = settings.value(QLatin1String("PreferredStyles")).toStringList();
d->preferredStyles.removeAll(QLatin1String(""));
}
{
settings.beginGroup(QLatin1String("Palette"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment