We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c283bc4 commit ece896aCopy full SHA for ece896a
gui/applicationlist.cpp
@@ -63,7 +63,6 @@ void ApplicationList::LoadSettings(QSettings *programSettings)
63
defapp = 0;
64
break;
65
}
66
- // use as default for windows environments
67
if (FindDefaultWindowsEditor())
68
{
69
@@ -76,10 +75,14 @@ void ApplicationList::LoadSettings(QSettings *programSettings)
76
75
if (names.size() > 0 && (names.size() == paths.size()))
77
78
for (int i = 0; i < names.size(); i++)
79
- {
80
AddApplication(names[i], paths[i]);
81
- }
82
- mDefaultApplicationIndex = 1;
+
+ if (defapp == -1)
+ mDefaultApplicationIndex = 0;
+ else if (defapp < names.size())
83
+ mDefaultApplicationIndex = defapp;
84
+ else
85
86
87
88
0 commit comments