Skip to content

Commit dcfc7aa

Browse files
committed
GUI: Don't show error when no application added.
I earlier added a check for missing (editor) application command line parameters. If parameters are missing at GUI startup an message is shown to user to check the settings. Unfortunately my check was incomplete and it also triggered when there was no applications defined. Which happens when user starts GUI for a first time. Fix the check so that user is only informed in case the parameters are missing and name + path are set.
1 parent 820e169 commit dcfc7aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gui/applicationlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool ApplicationList::LoadSettings(QSettings *programSettings)
5050
// Params will be empty first time starting with the new setting.
5151
// Return false and inform user about problem with application settings.
5252
bool succeeded = true;
53-
if (params.empty())
53+
if (!names.empty() && !paths.empty() && params.empty())
5454
{
5555
for (int i = 0; i < paths.length(); i++)
5656
params << "";

0 commit comments

Comments
 (0)