From: Alessandro Menti Date: Wed, 13 Apr 2016 14:15:27 +0000 (+0200) Subject: Launcher: disable Close button on the initial progress dialog X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0381ba84688a5bf8ef0bc27b335ae5ab6ae188b9;p=flightgear.git Launcher: disable Close button on the initial progress dialog --- diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index c82e7e215..870d092da 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -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();