CMsgBox: Ensure to get next selectable item.

Origin commit data
------------------
Commit: abca27ac7e
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-02-08 (Tue, 08 Feb 2022)
This commit is contained in:
2022-02-08 12:06:19 +01:00
committed by vanhofen
parent 9f9b179b53
commit f965e83250

View File

@@ -321,6 +321,9 @@ int CMsgBox::exec()
ccw_footer->SetSelectedButton(selected+1);
else
ccw_footer->SetSelectedButton(selected-1);
if (ccw_footer->getSelectedButtonObject())
{
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
selected = ccw_footer->getSelectedButton();
@@ -336,6 +339,7 @@ int CMsgBox::exec()
}
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
}
}
//***action buttons without preselection***
for (size_t i = 0; i< ccw_footer->getButtonChainObject()->size(); i++){