Fixed setting default application at first start.

This commit is contained in:
PKEuS 2012-10-14 12:10:30 +02:00
parent 2aae8381cc
commit b9da806492
1 changed files with 9 additions and 10 deletions

View File

@ -80,13 +80,12 @@ bool ApplicationList::LoadSettings()
defapp = 0;
}
#endif
}
if (names.size() > 0 && (names.size() == paths.size())) {
} else if (names.size() == paths.size()) {
for (int i = 0; i < names.size(); i++) {
const Application app(names[i], paths[i], params[i]);
AddApplication(app);
}
}
if (defapp == -1)
mDefaultApplicationIndex = 0;
@ -94,7 +93,7 @@ bool ApplicationList::LoadSettings()
mDefaultApplicationIndex = defapp;
else
mDefaultApplicationIndex = 0;
}
return succeeded;
}