diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-30 15:16:46 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-30 15:16:46 -0400 |
commit | 19194a73cc3619e72552713dc0c667f2fdbafcce (patch) | |
tree | adab296f31e258027b1181ca5af93e2690faa84b /src-qt5/core-utils/lumina-config | |
parent | Add the new jsonmenu menu plugin to lumina-config, with a new dialog for sett... (diff) | |
download | lumina-19194a73cc3619e72552713dc0c667f2fdbafcce.tar.gz lumina-19194a73cc3619e72552713dc0c667f2fdbafcce.tar.bz2 lumina-19194a73cc3619e72552713dc0c667f2fdbafcce.zip |
Fix the check routine in the new script finder dialog.
Diffstat (limited to 'src-qt5/core-utils/lumina-config')
-rw-r--r-- | src-qt5/core-utils/lumina-config/ScriptDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |