From 48423414f6911f76ec31f48e600149a8893aeab7 Mon Sep 17 00:00:00 2001 From: Victor Heng Date: Sat, 28 May 2016 16:56:28 -0700 Subject: [PATCH] JsonWizard: Check widget visibility when determining if it's mandatory The wizard is unable to advance when a mandatory field is hidden. Assume a hidden widget is not mandatory. Change-Id: I19bdc1a661d91b75151d3aec34ad9d584002a556 Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index ca825246b3e..33ce78cf383 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -955,7 +955,7 @@ bool JsonFieldPage::isComplete() const showError(message); hasErrorMessage = true; } - if (f->isMandatory()) + if (f->isMandatory() && !f->widget()->isHidden()) result = false; } }