Commit bf0abd8c authored by Libor Tomsik's avatar Libor Tomsik Committed by Tobias Hunger
Browse files

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's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 831701bb
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment