We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aae838 commit b9da806Copy full SHA for b9da806
1 file changed
gui/applicationlist.cpp
@@ -80,21 +80,20 @@ bool ApplicationList::LoadSettings()
80
defapp = 0;
81
}
82
#endif
83
- }
84
-
85
- if (names.size() > 0 && (names.size() == paths.size())) {
+ } else if (names.size() == paths.size()) {
86
for (int i = 0; i < names.size(); i++) {
87
const Application app(names[i], paths[i], params[i]);
88
AddApplication(app);
89
90
91
- if (defapp == -1)
92
- mDefaultApplicationIndex = 0;
93
- else if (defapp < names.size())
94
- mDefaultApplicationIndex = defapp;
95
- else
96
97
+
+ if (defapp == -1)
+ mDefaultApplicationIndex = 0;
+ else if (defapp < names.size())
+ mDefaultApplicationIndex = defapp;
+ else
98
return succeeded;
99
100
0 commit comments