From 14779cce55acffdaf0dc175afe1c12247effcf82 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 --- 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;