forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user