Skip to content

Commit 6cd9f4a

Browse files
committed
[[ Bug 14541 ]] Fix faulty logic in submenu pick
1 parent b000886 commit 6cd9f4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/src/button.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ void MCButton::docascade(MCStringRef p_pick)
38153815

38163816
if (pptr != this)
38173817
{
3818-
if (m_menu_handler != nil && !m_menu_handler->OnMenuPick(pptr, *t_pick, nil))
3818+
if (m_menu_handler == nil || !m_menu_handler->OnMenuPick(pptr, *t_pick, nil))
38193819
{
38203820
MCParameter *param = new MCParameter;
38213821
param->setvalueref_argument(*t_pick);

0 commit comments

Comments
 (0)