Files
nethack/win/Qt
PatR 889b437775 Qt add_menu() w/o start_menu()
I temporarily reverted the fix for end-of-game disclosure of overview
in order to trigger the add_menu() crash under Qt.  It came down to

if (!actual) impossible("AddMenu called before we know if Menu or Text");
actual->AddMenu(glyph,identifier,ch,gch,attr,str,itemflags);

where 'actual' happens to be Null.  impossible() gets called, goes
through pline() calling putmesg() and putstr(WIN_MESSAGE), then the
output never shows up anywhere.  I haven't figured our what's going
on with that, but changing the above to

if (!actual)
    impossible("AddMenu called before we know if Menu or Text");
else
    actual->AddMenu(glyph, identifier, ch, gch, attr, str, itemflags);

at least prevents the crash.  The main window ends up becoming
minimized/iconified but the final popups which occur after disclosure
appear and accept responses and then a clean exit takes place.

Presumably it used panic() rather than impossible() at some point,
otherwise that code makes no sense:  test for Null then deference it
regardless of the result of the test?
2023-04-20 13:15:31 -07:00
..
2019-12-07 17:07:50 +01:00
2019-12-07 17:07:50 +01:00
2021-12-30 11:29:03 -08:00
2019-12-07 17:07:50 +01:00
2020-12-27 17:01:33 -08:00
2019-12-07 17:07:50 +01:00
2021-12-30 11:29:03 -08:00
2019-12-07 17:07:50 +01:00
2022-11-23 13:11:14 -08:00
2022-01-04 12:23:06 -08:00
2022-11-23 13:11:14 -08:00
2023-01-22 12:35:54 -08:00
2019-12-07 17:07:50 +01:00
2021-12-30 11:29:03 -08:00
2021-01-08 13:47:34 -08:00
2021-12-30 11:29:03 -08:00
2019-12-07 17:07:50 +01:00
2023-04-20 13:15:31 -07:00
2021-08-15 10:58:42 +03:00
2022-11-29 21:53:21 -05:00
2022-01-10 13:23:09 -08:00
2022-06-11 13:52:58 -04:00
2023-04-04 14:25:24 -04:00
2022-11-23 13:11:14 -08:00
2019-12-07 17:07:50 +01:00
2022-01-02 01:48:07 -08:00
2020-12-06 02:58:05 -08:00
2022-11-29 21:53:21 -05:00
2022-11-23 13:11:14 -08:00
2022-11-23 13:11:14 -08:00
2021-12-30 11:29:03 -08:00
2020-11-05 14:36:13 -08:00
2022-10-27 21:51:10 -04:00
2019-12-07 17:07:50 +01:00
2022-11-23 13:11:14 -08:00
2021-04-11 14:55:45 -07:00
2022-11-29 21:53:21 -05:00
2020-10-31 15:34:47 -07:00