(not essential for 3.4.0, since the SL5500 port still needs more work anyway)
{
}
+#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 *)