Commit 9714ec8a authored by Aurindam Jana's avatar Aurindam Jana
Browse files

KitManager: Check for user settings file



Check if the user settings file exists before trying to restore
kits.

Change-Id: Ie4502eef48234a8b4b99c58362643576d8338aaa
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent b8484618
......@@ -161,7 +161,10 @@ void KitManager::restoreKits()
}
// read all kits from user file
KitList userKits = restoreKits(settingsFileName());
KitList userKits;
Utils::FileName userSettingsFile(settingsFileName());
if (userSettingsFile.toFileInfo().exists())
userKits = restoreKits(userSettingsFile);
foreach (Kit *k, userKits.kits) {
if (k->isSdkProvided())
kitsToCheck.append(k);
......
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