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.
This commit is contained in:
parent
820e1697cc
commit
dcfc7aa3f0
|
@ -50,7 +50,7 @@ bool ApplicationList::LoadSettings(QSettings *programSettings)
|
|||
// Params will be empty first time starting with the new setting.
|
||||
// Return false and inform user about problem with application settings.
|
||||
bool succeeded = true;
|
||||
if (params.empty())
|
||||
if (!names.empty() && !paths.empty() && params.empty())
|
||||
{
|
||||
for (int i = 0; i < paths.length(); i++)
|
||||
params << "";
|
||||
|
|
Loading…
Reference in New Issue