From 0381ba84688a5bf8ef0bc27b335ae5ab6ae188b9 Mon Sep 17 00:00:00 2001 From: Alessandro Menti Date: Wed, 13 Apr 2016 16:15:27 +0200 Subject: [PATCH] Launcher: disable Close button on the initial progress dialog --- src/GUI/QtLauncher.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- 2.39.5