From 6091f9c155cb03fa0444478fc80e450c3a90360c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 24 Nov 2014 09:10:48 +0100 Subject: [PATCH] CShellWindow: evaluate error output for plausible message output Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/14779cce55acffdaf0dc175afe1c12247effcf82 Author: Thilo Graf Date: 2014-11-24 (Mon, 24 Nov 2014) --- src/gui/widget/shellwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/shellwindow.cpp b/src/gui/widget/shellwindow.cpp index 962870d03..e9771be34 100644 --- a/src/gui/widget/shellwindow.cpp +++ b/src/gui/widget/shellwindow.cpp @@ -212,11 +212,12 @@ void CShellWindow::showResult() btn.paint(); } else if (mode & ACKNOWLEDGE_MSG){ - if (*res == -1) + if (*res != 0){ DisplayErrorMessage("Please press button"); - else + }else{ DisplayInfoMessage("...ready. Please press OK"); - exit = true; + exit = true; + } } neutrino_msg_t msg;