QmlDesigner: PuppetBuildProgressDialog has to be modal

Otherwise the application state can get seriously messed up,
when a user e.g. changes to editor mode.

Task-number: QTCREATORBUG-16722
Change-Id: I752eeb788ccb3b5458afe82496a68ddecf6e6579
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2016-10-07 13:58:40 +02:00
committed by Thomas Hartmann
parent 2e81a39b7c
commit 979b034dbe

View File

@@ -40,6 +40,7 @@ PuppetBuildProgressDialog::PuppetBuildProgressDialog() :
m_useFallbackPuppet(false)
{
setWindowFlags(Qt::SplashScreen);
setWindowModality(Qt::ApplicationModal);
ui->setupUi(this);
ui->buildProgressBar->setMaximum(85);
connect(ui->useFallbackPuppetPushButton, SIGNAL(clicked()), this, SLOT(setUseFallbackPuppet()));