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

This commit is contained in:
TangoCash
2016-09-12 13:27:46 +02:00
committed by svenhoefer
parent 974ef11d5b
commit bf770e9a68

View File

@@ -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)