diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-09-23 14:06:29 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-09-24 10:18:54 +0000 |
commit | 819438a37b21f0b9ffce056f06d09762eeadad7e (patch) | |
tree | 1845b54622c9007c3d24efac3770e62213acc5bb /src/plugins/coreplugin/icore.cpp | |
parent | c14e73cdd67dafa42794d1fc8d58f09f975dbfca (diff) |
ICore: Consistently use NewItemDialog to refer to File>New dialog
Change-Id: I28fba1e7cca3f9885d14c6e58d693046a4c0ea33
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/icore.cpp')
-rw-r--r-- | src/plugins/coreplugin/icore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/icore.cpp b/src/plugins/coreplugin/icore.cpp index 9fd605a6c5..6bb5ca9190 100644 --- a/src/plugins/coreplugin/icore.cpp +++ b/src/plugins/coreplugin/icore.cpp @@ -343,12 +343,12 @@ void ICore::showNewItemDialog(const QString &title, { QTC_ASSERT(!isNewItemDialogRunning(), return); auto newDialog = new NewDialog(dialogParent()); - connect(newDialog, &QObject::destroyed, m_instance, &ICore::validateNewDialogIsRunning); + connect(newDialog, &QObject::destroyed, m_instance, &ICore::validateNewItemDialogIsRunning); newDialog->setWizardFactories(factories, defaultLocation, extraVariables); newDialog->setWindowTitle(title); newDialog->showDialog(); - validateNewDialogIsRunning(); + validateNewItemDialogIsRunning(); } bool ICore::showOptionsDialog(const Id page, QWidget *parent) @@ -571,7 +571,7 @@ void ICore::saveSettings() ICore::settings(QSettings::UserScope)->sync(); } -void ICore::validateNewDialogIsRunning() +void ICore::validateNewItemDialogIsRunning() { static bool wasRunning = false; if (wasRunning == isNewItemDialogRunning()) |