Fixed setting default application at first start.
This commit is contained in:
parent
2aae8381cc
commit
b9da806492
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue