Commit edf42d55 authored by Daniel Teske's avatar Daniel Teske

Android: Fix restoring of MakeExtraSearchDirectory

Task-number: QTCREATORBUG-10983
Change-Id: I73dbc3e5279db8d85954d15411b68c47a038bafb
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 713892c0
......@@ -163,9 +163,8 @@ AndroidConfig::AndroidConfig(const QSettings &settings)
toolchainHost = settings.value(ToolchainHostKey).toString();
automaticKitCreation = settings.value(AutomaticKitCreationKey, true).toBool();
QString extraDirectory = settings.value(MakeExtraSearchDirectory).toString();
if (extraDirectory.isEmpty())
makeExtraSearchDirectories = QStringList();
else
makeExtraSearchDirectories.clear();
if (!extraDirectory.isEmpty())
makeExtraSearchDirectories << extraDirectory;
PersistentSettingsReader reader;
......@@ -182,9 +181,8 @@ AndroidConfig::AndroidConfig(const QSettings &settings)
if (v.isValid())
automaticKitCreation = v.toBool();
QString extraDirectory = reader.restoreValue(MakeExtraSearchDirectory).toString();
if (extraDirectory.isEmpty())
makeExtraSearchDirectories = QStringList();
else
makeExtraSearchDirectories.clear();
if (!extraDirectory.isEmpty())
makeExtraSearchDirectories << extraDirectory;
// persistent settings
}
......
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