From dcfc7aa3f00ae2ebdec258c3f446c6587b4355f1 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 4 Apr 2011 11:16:53 +0300 Subject: [PATCH] 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. --- gui/applicationlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/applicationlist.cpp b/gui/applicationlist.cpp index b34fc2e00..eacb00be3 100644 --- a/gui/applicationlist.cpp +++ b/gui/applicationlist.cpp @@ -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 << "";