forked from qt-creator/qt-creator
ProjectExplorer: Fix after async path verification in JSON wizards
After 83111bb3, the path validity result was coming in later and
was not considered for the page completeness check any more.
Fix that by running the check again when the path result is ready.
Change-Id: I2aab6b2130896d63f7e0359ced39e758393a2644
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -837,6 +837,7 @@ void PathChooserField::setup(JsonFieldPage *page, const QString &name)
|
|||||||
QTC_ASSERT(w, return);
|
QTC_ASSERT(w, return);
|
||||||
page->registerFieldWithName(name, w, "path", SIGNAL(textChanged(QString)));
|
page->registerFieldWithName(name, w, "path", SIGNAL(textChanged(QString)));
|
||||||
QObject::connect(w, &PathChooser::textChanged, page, &WizardPage::completeChanged);
|
QObject::connect(w, &PathChooser::textChanged, page, &WizardPage::completeChanged);
|
||||||
|
QObject::connect(w, &PathChooser::validChanged, page, &WizardPage::completeChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PathChooserField::validate(MacroExpander *expander, QString *message)
|
bool PathChooserField::validate(MacroExpander *expander, QString *message)
|
||||||
|
|||||||
Reference in New Issue
Block a user