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:
Kimmo Varis 2011-04-04 11:16:53 +03:00
parent 820e1697cc
commit dcfc7aa3f0
1 changed files with 1 additions and 1 deletions

View File

@ -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 << "";