diff --git a/win/Qt/qt_win.cpp b/win/Qt/qt_win.cpp index ac9c3b172..ad9124d23 100644 --- a/win/Qt/qt_win.cpp +++ b/win/Qt/qt_win.cpp @@ -1241,17 +1241,21 @@ bool NetHackQtPlayerSelector::Choose() { if (fully_specified_role) return TRUE; +#if defined(QWS) // probably safe with Qt 3, too (where show!=exec in QDialog). if ( qt_compact_mode ) { showMaximized(); - } else { + } else +#endif + { adjustSize(); centerOnMain(this); } if ( exec() ) { return TRUE; - } else + } else { return FALSE; + } }