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:
hjk
2024-07-17 08:49:26 +02:00
parent 7d137e56b3
commit 1aef2e2591

View File

@@ -837,6 +837,7 @@ void PathChooserField::setup(JsonFieldPage *page, const QString &name)
QTC_ASSERT(w, return);
page->registerFieldWithName(name, w, "path", SIGNAL(textChanged(QString)));
QObject::connect(w, &PathChooser::textChanged, page, &WizardPage::completeChanged);
QObject::connect(w, &PathChooser::validChanged, page, &WizardPage::completeChanged);
}
bool PathChooserField::validate(MacroExpander *expander, QString *message)