From bf0abd8cb1d47973c3e4e3a5bb93168a46c89772 Mon Sep 17 00:00:00 2001 From: Libor Tomsik Date: Sun, 1 Mar 2015 20:12:41 +0100 Subject: [PATCH] Keeping entered values in C++ Library Wizard Adding check if values in C++ Library Wizard - Class Information were already entered to keep them preserved when going back in the wizard. Change-Id: Ia1f65b8fd338b8e783f0d032574b9526befcc1a3 Task-number: QTCREATORBUG-12185 Reviewed-by: Orgad Shaneh Reviewed-by: Tobias Hunger --- .../wizards/librarywizarddialog.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/plugins/qmakeprojectmanager/wizards/librarywizarddialog.cpp b/src/plugins/qmakeprojectmanager/wizards/librarywizarddialog.cpp index 694debe5cba..a05265d98a9 100644 --- a/src/plugins/qmakeprojectmanager/wizards/librarywizarddialog.cpp +++ b/src/plugins/qmakeprojectmanager/wizards/librarywizarddialog.cpp @@ -297,14 +297,15 @@ void LibraryWizardDialog::setupFilesPage() } m_filesPage->setBaseClassInputVisible(true); break; - default: { - // Urrm, figure out a good class name. Use project name this time - QString className = projectName(); - if (!className.isEmpty()) - className[0] = className.at(0).toUpper(); - m_filesPage->setClassName(className); - m_filesPage->setBaseClassInputVisible(false); - } + default: + if (!m_filesPage->isComplete()) { + // Urrm, figure out a good class name. Use project name this time + QString className = projectName(); + if (!className.isEmpty()) + className[0] = className.at(0).toUpper(); + m_filesPage->setClassName(className); + m_filesPage->setBaseClassInputVisible(false); + } break; } }