diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index 53dd1bb21..99c858c93 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -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(ccw_footer->getButtonChainObject()->getCCItem(i)); + CComponentsButton* btn_action = ccw_footer->getButtonLabel(i); if (btn_action) { if (btn_action->hasButtonDirectKey(msg))