msgbox: simplify call for extraction of button label

Origin commit data
------------------
Commit: 1f706130d6
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)
This commit is contained in:
2022-03-27 21:46:44 +02:00
committed by vanhofen
parent 1e164bcd06
commit 035fd174a1

View File

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