New Project Wizard: Recheck existence of directory after browsing

The user might create directories or delete them while in the browsing
interface, thus in the PathChooser trigger a validation after browsing.

Task-Nr: QTCREATORBUG-3105
Reviewed-By: Friedemann Kleint
This commit is contained in:
dt
2010-11-23 15:19:20 +01:00
parent ba811dfb71
commit 5689e904fe
2 changed files with 2 additions and 0 deletions

View File

@@ -270,6 +270,7 @@ void PathChooser::slotBrowse()
}
emit browsingFinished();
m_d->m_lineEdit->triggerChanged();
}
bool PathChooser::isValid() const

View File

@@ -66,6 +66,7 @@ ProjectIntroPage::ProjectIntroPage(QWidget *parent) :
m_d->m_ui.nameLineEdit->setFocus();
connect(m_d->m_ui.pathChooser, SIGNAL(changed(QString)), this, SLOT(slotChanged()));
connect(m_d->m_ui.nameLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotChanged()));
connect(m_d->m_ui.pathChooser, SIGNAL(validChanged()), this, SLOT(slotChanged()));
connect(m_d->m_ui.pathChooser, SIGNAL(returnPressed()), this, SLOT(slotActivated()));
connect(m_d->m_ui.nameLineEdit, SIGNAL(validReturnPressed()), this, SLOT(slotActivated()));
}