diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-29 08:17:55 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-29 08:17:55 -0400 |
commit | 21a6399d7ed771812a93b988b5eb58d511cd11d7 (patch) | |
tree | 455b0f160a0b6976a1a2f621b7b660327bad547f /lumina-open | |
parent | Clean up the display of some Fluxbox Keyboard shortcuts. (diff) | |
download | lumina-21a6399d7ed771812a93b988b5eb58d511cd11d7.tar.gz lumina-21a6399d7ed771812a93b988b5eb58d511cd11d7.tar.bz2 lumina-21a6399d7ed771812a93b988b5eb58d511cd11d7.zip |
Do not have lumina-open show the crash handler if a "pc-su" process returns error code 1 (user cancelled the procedure).
Diffstat (limited to 'lumina-open')
-rw-r--r-- | lumina-open/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp index 3acc4ee3..81c0f9c4 100644 --- a/lumina-open/main.cpp +++ b/lumina-open/main.cpp @@ -15,14 +15,12 @@ #include <QUrl> #include <QDebug> #include <QTranslator> -//#include <QLocale> #include <QMessageBox> #include <QSplashScreen> #include <QDateTime> #include <QPixmap> #include <QColor> #include <QFont> -//#include <QTextCodec> #include "LFileDialog.h" @@ -350,7 +348,8 @@ int main(int argc, char **argv){ } //qDebug() << "[lumina-open] Finished Cmd:" << cmd << retcode << p->exitStatus(); if( QFile::exists("/tmp/.luminastopping") ){ watch = false; } //closing down session - ignore "crashes" (app could have been killed during cleanup) - if( (retcode > 0) && watch){ + if( (retcode > 0) && watch && !(retcode==1 && cmd.startsWith("pc-su ")) ){ //pc-su returns 1 if the user cancelles the operation + qDebug() << "[lumina-open] Application Error:" << retcode; //Setup the application QApplication App(argc, argv); |