Commit 56a7ae72 authored by Daniel Teske's avatar Daniel Teske

Introduces a crash. m_baseLayout is not the same in the ctor and ::initializePage

This reverts commit 9ce63df00e0c06388a7cdcc90d1dc30d39bbbad4

Change-Id: I1291e8460a56187893c342e6f1beef7be57767a9
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 496020c5
......@@ -170,11 +170,6 @@ 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*)));
......@@ -188,6 +183,11 @@ 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