Fixed hide commands and show commands not executing properly

This commit is contained in:
smallmodel 2023-12-30 01:09:11 +01:00
parent f092eab842
commit 979af2925d
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -2617,7 +2617,10 @@ void UIWidget::ExecuteShowCommands
{
for( int i = 1; i <= m_showcommands.NumObjects(); i++ )
{
uii.Cmd_Stuff( m_showcommands.ObjectAt( i )->c_str() );
//uii.Cmd_Stuff( m_showcommands.ObjectAt( i )->c_str() );
// Fixed in 2.0
Event event(m_showcommands.ObjectAt(i)->c_str());
ProcessEvent(event);
}
}
@ -2629,7 +2632,10 @@ void UIWidget::ExecuteHideCommands
{
for( int i = 1; i <= m_hidecommands.NumObjects(); i++ )
{
uii.Cmd_Stuff( m_hidecommands.ObjectAt( i )->c_str() );
//uii.Cmd_Stuff( m_hidecommands.ObjectAt( i )->c_str() );
// Fixed in 2.0
Event event(m_hidecommands.ObjectAt(i)->c_str());
ProcessEvent(event);
}
}