Workaround bug in SHARP SL5500 ROM.

(not essential for 3.4.0, since the SL5500 port still needs more work anyway)
This commit is contained in:
warwick
2002-03-13 06:04:53 +00:00
parent d1a4f74e91
commit be7145d1a5

View File

@@ -4533,10 +4533,24 @@ void NetHackQtBind::qt_get_nh_event()
{
}
#if defined(QWS)
// Kludge to access lastWindowClosed() signal.
class TApp : public QApplication {
public:
TApp(int& c, char**v) : QApplication(c,v) {}
void lwc() { emit lastWindowClosed(); }
};
#endif
void NetHackQtBind::qt_exit_nhwindows(const char *)
{
delete instance;
delete qApp;
#if defined(QWS)
// Avoids bug in SHARP SL5500
((TApp*)qApp)->lwc();
qApp->quit();
#endif
delete instance; // ie. qApp
}
void NetHackQtBind::qt_suspend_nhwindows(const char *)