diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/menubar.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx index 8295af8e1..067661cfa 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -228,12 +228,11 @@ void menu_location_cb(Fl_Widget* w, void* data) smenubar = new Fl_Sys_Menu_Bar(0,0,0,30); smenubar->menu(menu); smenubar->callback(test_cb); - } - else { // switch to window menu bar + } else { // switch to window menu bar menubar->copy(smenubar->menu()); delete smenubar; menubar->show(); - } + } } #endif // HAS_MAC_APP_MENU |
