mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
msgbox: simplify call for extraction of button label
This commit is contained in:
@@ -345,7 +345,7 @@ int CMsgBox::exec()
|
|||||||
//***action buttons without preselection***
|
//***action buttons without preselection***
|
||||||
for (size_t i = 0; i< ccw_footer->getButtonChainObject()->size(); i++)
|
for (size_t i = 0; i< ccw_footer->getButtonChainObject()->size(); i++)
|
||||||
{
|
{
|
||||||
CComponentsButton* btn_action = static_cast<CComponentsButton*>(ccw_footer->getButtonChainObject()->getCCItem(i));
|
CComponentsButton* btn_action = ccw_footer->getButtonLabel(i);
|
||||||
if (btn_action)
|
if (btn_action)
|
||||||
{
|
{
|
||||||
if (btn_action->hasButtonDirectKey(msg))
|
if (btn_action->hasButtonDirectKey(msg))
|
||||||
|
Reference in New Issue
Block a user