mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
unbreak msgbox
the "if (msg)" was basically always true, killing all keys that were not handled in this clause (e.g. it was not possible to switch the box from standby if a plugin with output was running during standby)
This commit is contained in:
@@ -275,15 +275,14 @@ int CMsgBox::exec()
|
||||
{
|
||||
scroll_down();
|
||||
}
|
||||
else if (msg){
|
||||
//***navi buttons for button selection***
|
||||
if(msg==CRCInput::RC_right || msg==CRCInput::RC_left)
|
||||
else if(msg == CRCInput::RC_right || msg == CRCInput::RC_left)
|
||||
{
|
||||
if(msg==CRCInput::RC_right){
|
||||
if (msg == CRCInput::RC_right) {
|
||||
ccw_footer->setSelectedButton(selected+1);
|
||||
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
||||
}
|
||||
if(msg==CRCInput::RC_left){
|
||||
if (msg == CRCInput::RC_left) {
|
||||
ccw_footer->setSelectedButton(selected-1);
|
||||
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
||||
}
|
||||
@@ -294,7 +293,7 @@ int CMsgBox::exec()
|
||||
refreshFoot();
|
||||
|
||||
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
|
||||
if (timeout > 0){
|
||||
if (timeout > 0) {
|
||||
timeout_pb->setValues(0, timeout);
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||
}
|
||||
@@ -322,7 +321,6 @@ int CMsgBox::exec()
|
||||
else if (CNeutrinoApp::getInstance()->listModeKey(msg)){
|
||||
// do nothing //TODO: if passed rc messages are ignored rc messaages: has no effect here too!!
|
||||
}
|
||||
}
|
||||
else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::cancel_all)
|
||||
{
|
||||
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] messages_return::cancel_all\033[0m\n", __func__, __LINE__);
|
||||
|
Reference in New Issue
Block a user