Handle non-qmake projects without kits

Make it possible to add kits again after all kits were removed
from a non qmake project.

Task-number: QTCREATORBUG-7814
Change-Id: I38967cd4c106b95288b7020fe325d8cfe2688a7c
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2012-09-06 16:19:14 +02:00
parent aa8a0cf0ed
commit e77bb8af04
6 changed files with 16 additions and 2 deletions

View File

@@ -384,7 +384,7 @@ void ProjectWindow::showProperties(int index, int subIndex)
m_previousTargetSubIndex = previousPanelWidget->currentSubIndex();
}
if (m_hasTarget.value(project)) {
if (m_hasTarget.value(project) || !project->supportsNoTargetPanel()) {
if (subIndex == 0) {
// Targets page
removeCurrentWidget();