From 19194a73cc3619e72552713dc0c667f2fdbafcce Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 30 Jun 2016 15:16:46 -0400 Subject: Fix the check routine in the new script finder dialog. --- src-qt5/core-utils/lumina-config/ScriptDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/core-utils') diff --git a/src-qt5/core-utils/lumina-config/ScriptDialog.cpp b/src-qt5/core-utils/lumina-config/ScriptDialog.cpp index 3453486e..2980a3e9 100644 --- a/src-qt5/core-utils/lumina-config/ScriptDialog.cpp +++ b/src-qt5/core-utils/lumina-config/ScriptDialog.cpp @@ -83,7 +83,7 @@ void ScriptDialog::checkItems(bool firstrun){ if(name().isEmpty()){ good = false; ui->line_name->setStyleSheet("color: red;"); } else{ ui->line_name->setStyleSheet(""); } QString cmd = command().section(" ",0,0).simplified(); - if( !LUtils::isValidBinary(cmd) || cmd.isEmpty() ){ good = false; ui->line_exec->setStyleSheet("color: red;"); } + if( cmd.isEmpty() || !LUtils::isValidBinary(cmd) ){ good = false; ui->line_exec->setStyleSheet("color: red;"); } else{ ui->line_exec->setStyleSheet(""); } ui->pushApply->setEnabled(good); -- cgit