mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
src/gui/widget/msgbox.cpp: add missing handling of RC_home message
Required in case of usage without explicit undefined home button.
Origin commit data
------------------
Branch: ni/coolstream
Commit: ebffa8073f
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-29 (Sun, 29 Apr 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -219,7 +219,7 @@ void CMsgBox::initButtons()
|
|||||||
//define default selected button from default_result
|
//define default selected button from default_result
|
||||||
if (v_buttons.size() > 1){
|
if (v_buttons.size() > 1){
|
||||||
for (size_t i = 0; i< v_buttons.size(); i++){
|
for (size_t i = 0; i< v_buttons.size(); i++){
|
||||||
if (v_buttons[i].btn_result == result){
|
if (v_buttons[i].btn_result == default_result){
|
||||||
ccw_footer->setSelectedButton(i);
|
ccw_footer->setSelectedButton(i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -313,13 +313,14 @@ int CMsgBox::exec()
|
|||||||
loop = false;
|
loop = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//***action button ok with preselected button***
|
//***action button 'ok' handled with selected button and its predefined result***
|
||||||
if ((msg == CRCInput::RC_ok) && (ccw_footer->getSelectedButtonObject()->getButtonAlias() == mb_show_button)){
|
if ((msg == CRCInput::RC_ok) && (ccw_footer->getSelectedButtonObject()->getButtonAlias() == mb_show_button)){
|
||||||
result = (msg_result_t)ccw_footer->getSelectedButtonObject()->getButtonResult();
|
result = (msg_result_t)ccw_footer->getSelectedButtonObject()->getButtonResult();
|
||||||
loop = false;
|
loop = false;
|
||||||
}
|
}
|
||||||
//***cancel button***
|
//***action button 'home' with general cancel result***
|
||||||
else if (msg == CRCInput::RC_home){
|
else if (msg == CRCInput::RC_home){
|
||||||
|
result = mbrCancel;
|
||||||
loop = false;
|
loop = false;
|
||||||
}
|
}
|
||||||
//***ignore***
|
//***ignore***
|
||||||
|
Reference in New Issue
Block a user