Changes affecting everybody (using Qt): rename game->Save to game->Save-and-exit and game->Quit to game->Quit-without-saving. OSX-specific changes: add separate nethack->Quit and change game->Quit-without-saving to game->_Quit-without-saving to prevent that from being hijacked for the nethack menu. nethack->Quit menu entry works. Command+Q is a keyboard shortcut for it. They bring up a menu with choices of "Quit without saving" and "Cancel and return to game". It's not the same as the handler for the window Close button, which used to offer "Save" or "Cancel" (with the latter triggering an infinite loop) but now offers "Save and exit" or "Quit without saving". They don't share any code. The game->_Quit-without-saving entry doesn't work; it runs nethack's '?' command like a bunch of other broken menu entries. If it did work, it would give nethack's "Really quit?" prompt and proceed from there. The "Quit without saving" response for nethack->Quit confirmation bypasses that and just quits. Also OSX, add a second 'about' entry. The first one is hijacked and added to the nethack menu, the second is help->_About_Qt_NetHack_ and avoids hijacking. Both nethack->About and help->_About_ bring up the same dialog box showing version and assorted other info. A lot of flailing about with for relatively small amount of progress.
35 KiB
35 KiB