forked from qt-creator/qt-creator
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:
@@ -270,6 +270,7 @@ void PathChooser::slotBrowse()
|
|||||||
}
|
}
|
||||||
|
|
||||||
emit browsingFinished();
|
emit browsingFinished();
|
||||||
|
m_d->m_lineEdit->triggerChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PathChooser::isValid() const
|
bool PathChooser::isValid() const
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ ProjectIntroPage::ProjectIntroPage(QWidget *parent) :
|
|||||||
m_d->m_ui.nameLineEdit->setFocus();
|
m_d->m_ui.nameLineEdit->setFocus();
|
||||||
connect(m_d->m_ui.pathChooser, SIGNAL(changed(QString)), this, SLOT(slotChanged()));
|
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.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.pathChooser, SIGNAL(returnPressed()), this, SLOT(slotActivated()));
|
||||||
connect(m_d->m_ui.nameLineEdit, SIGNAL(validReturnPressed()), this, SLOT(slotActivated()));
|
connect(m_d->m_ui.nameLineEdit, SIGNAL(validReturnPressed()), this, SLOT(slotActivated()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user