X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcpopupmenu.C;h=4c639fe27d25890f96bd4289cc77c21c651ca569;hb=17b4e5a06157865391c2d07b552b81d84665bcae;hp=be17a0a311403824ec130180a18e2cf7f7b767bd;hpb=d94bbdeebde4f16a77c388f9f28114b945db41d9;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcpopupmenu.C b/cinelerra-5.1/guicast/bcpopupmenu.C index be17a0a3..4c639fe2 100644 --- a/cinelerra-5.1/guicast/bcpopupmenu.C +++ b/cinelerra-5.1/guicast/bcpopupmenu.C @@ -369,6 +369,7 @@ int BC_PopupMenu::repeat_event(int64_t duration) int BC_PopupMenu::button_press_event() { + int result = 0; if(get_buttonpress() == 1 && is_event_win() && use_title) @@ -404,17 +405,18 @@ int BC_PopupMenu::button_press_event() BC_MenuItem *tmp = menu_popup->menu_items.values[theval]; set_text(tmp->get_text()); - if (!tmp->handle_event()) - this->handle_event(); + result = tmp->handle_event(); + if( !result ) + result = this->handle_event(); } if(popup_down) { // Menu is down so dispatch to popup. menu_popup->dispatch_button_press(); - return 1; + result = 1; } - return 0; + return result; } int BC_PopupMenu::button_release_event()