From 5f74cd86a20f1eff7cbee57c66c9e1d62694e85b Mon Sep 17 00:00:00 2001 From: TangoCash Date: Mon, 12 Sep 2016 13:27:46 +0200 Subject: [PATCH] messagebox: fix navigation in buttons if just one button is present (thx dbo) Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/bf770e9a6882bc679e225797cfb811bca85b5837 Author: TangoCash Date: 2016-09-12 (Mon, 12 Sep 2016) Origin message was: ------------------ - messagebox: fix navigation in buttons if just one button is present (thx dbo) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/messagebox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/messagebox.cpp b/src/gui/widget/messagebox.cpp index 7140d7569..791bde242 100644 --- a/src/gui/widget/messagebox.cpp +++ b/src/gui/widget/messagebox.cpp @@ -233,7 +233,7 @@ int CMessageBox::exec(int timeout) result = mbrYes; loop = false; } - else if(msg==CRCInput::RC_right) + else if(msg==CRCInput::RC_right && ButtonCount > 1) { bool ok = false; while (!ok) @@ -257,7 +257,7 @@ int CMessageBox::exec(int timeout) paintButtons(); } } - else if(msg==CRCInput::RC_left) + else if(msg==CRCInput::RC_left && ButtonCount > 1) { bool ok = false; while (!ok)