messagebox: fix navigation in buttons if just one button is present (thx dbo)

Origin commit data
------------------
Branch: ni/coolstream
Commit: bf770e9a68
Author: TangoCash <eric@loxat.de>
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
This commit is contained in:
TangoCash
2016-09-12 13:27:46 +02:00
committed by vanhofen
parent ed6f601639
commit 5f74cd86a2

View File

@@ -233,7 +233,7 @@ int CMessageBox::exec(int timeout)
result = mbrYes; result = mbrYes;
loop = false; loop = false;
} }
else if(msg==CRCInput::RC_right) else if(msg==CRCInput::RC_right && ButtonCount > 1)
{ {
bool ok = false; bool ok = false;
while (!ok) while (!ok)
@@ -257,7 +257,7 @@ int CMessageBox::exec(int timeout)
paintButtons(); paintButtons();
} }
} }
else if(msg==CRCInput::RC_left) else if(msg==CRCInput::RC_left && ButtonCount > 1)
{ {
bool ok = false; bool ok = false;
while (!ok) while (!ok)