msgbox: simplify call for extraction of button label

This commit is contained in:
2022-03-23 21:08:44 +01:00
parent 9f5fc4a9d4
commit 09ce8971f1

View File

@@ -345,7 +345,7 @@ int CMsgBox::exec()
//***action buttons without preselection***
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->hasButtonDirectKey(msg))