]> granicus.if.org Git - nethack/commit
different fix for #H4332 - Qt crashes upon quit
authorPatR <rankin@nethack.org>
Sat, 14 May 2016 09:13:07 +0000 (02:13 -0700)
committerPatR <rankin@nethack.org>
Sat, 14 May 2016 09:13:07 +0000 (02:13 -0700)
commit0bd13a7a8c7e6ec702ff79f4c0bcd7aedde1a902
tree23c2ca64b7fc04de2ced50a46ea27bfa4b0ea6af
parentcce85939b5e55b885e6a60a72fd46bc904b0b998
different fix for #H4332 - Qt crashes upon quit

Quiting without ever examining inventory caused the Qt interface
to issue an impossible(), then crash due to deferencing a Null
pointer.  The prior fix was to suppress the validation code that
was crashing.  This changes things so that the inventory window
always gets at least one use, allowing the Qt validation code to
succeed.  tty and X11 are ok with it; win32 needs to be verified.
src/allmain.c
win/Qt/qt_win.cpp