]> git.mxchange.org Git - flightgear.git/commitdiff
Launcher: disable Close button on the initial progress dialog
authorAlessandro Menti <alessandro.menti@hotmail.it>
Wed, 13 Apr 2016 14:15:27 +0000 (16:15 +0200)
committerJames Turner <zakalawe@mac.com>
Sun, 17 Apr 2016 16:53:24 +0000 (17:53 +0100)
src/GUI/QtLauncher.cxx

index c82e7e2151e916a1e721ef3bfad3e856d8a853c3..870d092da00cc52c9319f889e03eab34450b5cba 100644 (file)
@@ -90,7 +90,12 @@ void initNavCache()
     if (cache->isRebuildRequired()) {
         QProgressDialog rebuildProgress(baseLabel,
                                        QString() /* cancel text */,
-                                       0, 100);
+                                       0, 100, Q_NULLPTR,
+                                       Qt::Dialog
+                                           | Qt::CustomizeWindowHint
+                                           | Qt::WindowTitleHint
+                                           | Qt::WindowSystemMenuHint
+                                           | Qt::MSWindowsFixedSizeDialogHint);
         rebuildProgress.setWindowModality(Qt::WindowModal);
         rebuildProgress.show();