Wizards: Treat running wizards in the same way as a running NewDialog

That is block the New file or project action.

Change-Id: Ic7bb6013fce02fdcdd5c86b70ba5428218597a40
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-05-29 15:55:49 +02:00
parent 3ceec86577
commit 7e41b40c91
8 changed files with 39 additions and 10 deletions

View File

@@ -286,6 +286,7 @@
*/
#include "dialogs/newdialog.h"
#include "iwizardfactory.h"
#include "mainwindow.h"
#include "documentmanager.h"
@@ -312,7 +313,7 @@ ICore *ICore::instance()
bool ICore::isNewItemDialogRunning()
{
return NewDialog::isRunning();
return NewDialog::isRunning() || IWizardFactory::isWizardRunning();
}
ICore::ICore(MainWindow *mainwindow)