diff options
Diffstat (limited to 'mac/src')
| -rw-r--r-- | mac/src/macmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mac/src/macmenu.c b/mac/src/macmenu.c index 41536e466aa..bf695214267 100644 --- a/mac/src/macmenu.c +++ b/mac/src/macmenu.c | |||
| @@ -1702,14 +1702,13 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) | |||
| 1702 | SetPort (FRAME_MAC_WINDOW (f)); | 1702 | SetPort (FRAME_MAC_WINDOW (f)); |
| 1703 | LocalToGlobal (&pos); | 1703 | LocalToGlobal (&pos); |
| 1704 | 1704 | ||
| 1705 | /* No selection has been chosen yet. */ | ||
| 1706 | menu_item_selection = 0; | ||
| 1707 | |||
| 1708 | InsertMenu (menu, -1); | 1705 | InsertMenu (menu, -1); |
| 1709 | 1706 | ||
| 1710 | /* Display the menu. */ | 1707 | /* Display the menu. */ |
| 1711 | menu_item_selection = LoWord (PopUpMenuSelect (menu, pos.v, pos.h, 0)); | 1708 | menu_item_selection = LoWord (PopUpMenuSelect (menu, pos.v, pos.h, 0)); |
| 1712 | 1709 | ||
| 1710 | GetMenuItemRefCon (menu, menu_item_selection, &menu_item_selection); | ||
| 1711 | |||
| 1713 | DeleteMenu (POPUP_SUBMENU_ID); | 1712 | DeleteMenu (POPUP_SUBMENU_ID); |
| 1714 | 1713 | ||
| 1715 | #if 0 | 1714 | #if 0 |