From dde7857543ec033d44a460f607347f2f7537d9a2 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 12 Feb 2019 09:49:11 +0100 Subject: [PATCH] ProjectExplorer: Move more polishing to KitWidget construction Change-Id: I0dfa27f57f305ebe0439adef810124b8b45ef45f Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/kitmanagerconfigwidget.cpp | 4 ++++ src/plugins/projectexplorer/kitmodel.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp b/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp index 6dad16eeae9..fa699708b78 100644 --- a/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp +++ b/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp @@ -126,6 +126,10 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) : addAspectToWorkingCopy(aspect); updateVisibility(); + + if (k && k->isAutoDetected()) + makeStickySubWidgetsReadOnly(); + setVisible(false); } KitManagerConfigWidget::~KitManagerConfigWidget() diff --git a/src/plugins/projectexplorer/kitmodel.cpp b/src/plugins/projectexplorer/kitmodel.cpp index 80e613fbf5a..8e4ca2de4a5 100644 --- a/src/plugins/projectexplorer/kitmodel.cpp +++ b/src/plugins/projectexplorer/kitmodel.cpp @@ -47,11 +47,6 @@ public: KitNode(Kit *k) { widget = new KitManagerConfigWidget(k); - if (widget) { - if (k && k->isAutoDetected()) - widget->makeStickySubWidgetsReadOnly(); - widget->setVisible(false); - } } ~KitNode() override