Commit 0779cec2 authored by Daniel Teske's avatar Daniel Teske

TargetSetupPage: Move code to ctor

::initializePage() is called multiple times, so those should be done
in the ctor

Task-number: QTCREATORBUG-10643
Change-Id: Ic684bfc6f4352c39d42789abab1c29b6402185d0
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent ca660802
......@@ -170,6 +170,11 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) :
if (QWidget *w = pk->createWidget(this))
m_potentialWidgets.append(w);
m_baseLayout->addWidget(m_importWidget);
foreach (QWidget *widget, m_potentialWidgets)
m_baseLayout->addWidget(widget);
m_baseLayout->addItem(m_spacer);
QObject *km = KitManager::instance();
connect(km, SIGNAL(kitAdded(ProjectExplorer::Kit*)),
this, SLOT(handleKitAddition(ProjectExplorer::Kit*)));
......@@ -183,11 +188,6 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) :
void TargetSetupPage::initializePage()
{
m_baseLayout->addWidget(m_importWidget);
foreach (QWidget *widget, m_potentialWidgets)
m_baseLayout->addWidget(widget);
m_baseLayout->addItem(m_spacer);
reset();
setupWidgets();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment