From 5689e904fe66f90c20a8f36610adf762624b53fe Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Tue, 23 Nov 2010 15:19:20 +0100 Subject: [PATCH] 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 --- src/libs/utils/pathchooser.cpp | 1 + src/libs/utils/projectintropage.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 2dc71d1011d..77390fc1a69 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -270,6 +270,7 @@ void PathChooser::slotBrowse() } emit browsingFinished(); + m_d->m_lineEdit->triggerChanged(); } bool PathChooser::isValid() const diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp index d692293dff5..f0f0a6dd961 100644 --- a/src/libs/utils/projectintropage.cpp +++ b/src/libs/utils/projectintropage.cpp @@ -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())); } -- GitLab