From 5e823e558a80a0b9439edcf60d149eff12396198 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 26 Mar 2015 15:32:34 -0400 Subject: Clean up the retcode > 0 "or" usage in main.cpp --- lumina-open/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lumina-open') diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp index 657ffc07..c476cfdf 100644 --- a/lumina-open/main.cpp +++ b/lumina-open/main.cpp @@ -326,8 +326,7 @@ int main(int argc, char **argv){ int retcode = p->exitCode(); //qDebug() << "[lumina-open] Finished Cmd:" << cmd << retcode << p->exitStatus(); - //if(retcode!=0 ){ - if(p->exitStatus() == QProcess::CrashExit or retcode > 0){ + if(p->exitStatus() == QProcess::CrashExit || retcode > 0){ qDebug() << "[lumina-open] Application Error:" << retcode; QString err = QString(p->readAllStandardError()); if(err.isEmpty()){ err = QString(p->readAllStandardOutput()); } -- cgit