From: Good Guy Date: Tue, 4 Jul 2017 22:49:36 +0000 (-0600) Subject: prevent btn2 TumbleTextBox updates when disabled X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=e94d765d190f22937e955f0e6ff9b70d167786f8;p=goodguy%2Fhistory.git prevent btn2 TumbleTextBox updates when disabled --- diff --git a/cinelerra-5.1/guicast/bctextbox.C b/cinelerra-5.1/guicast/bctextbox.C index ef3ffb1f..5c8a8f93 100644 --- a/cinelerra-5.1/guicast/bctextbox.C +++ b/cinelerra-5.1/guicast/bctextbox.C @@ -2587,19 +2587,10 @@ int BC_TumbleTextBoxText::handle_event() int BC_TumbleTextBoxText::button_press_event() { - if(is_event_win()) - { - if(get_buttonpress() < 4) return BC_TextBox::button_press_event(); - - if(get_buttonpress() == 4) - { - popup->tumbler->handle_up_event(); - } - else - if(get_buttonpress() == 5) - { - popup->tumbler->handle_down_event(); - } + if( get_enabled() && is_event_win() ) { + if( get_buttonpress() < 4 ) return BC_TextBox::button_press_event(); + if( get_buttonpress() == 4 ) popup->tumbler->handle_up_event(); + else if( get_buttonpress() == 5 ) popup->tumbler->handle_down_event(); return 1; } return 0;