From 09ce8971f1115073d9253fdddced03986f3faca7 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 23 Mar 2022 21:08:44 +0100 Subject: [PATCH] msgbox: simplify call for extraction of button label --- src/gui/widget/msgbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))