Commit 7811cad1 authored by Daniel Teske's avatar Daniel Teske

TargetSetupPage: Fix layout code for m_importWidget and m_spacer

Those should be added once at initialization time, not for each
setupWidget call.

Change-Id: Id65b919f911e47d2f687bcb3c40e7120d63c5468
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent dcc9ca8e
...@@ -175,6 +175,9 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) : ...@@ -175,6 +175,9 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) :
void TargetSetupPage::initializePage() void TargetSetupPage::initializePage()
{ {
m_baseLayout->addWidget(m_importWidget);
m_baseLayout->addItem(m_spacer);
reset(); reset();
setupWidgets(); setupWidgets();
...@@ -255,7 +258,6 @@ void TargetSetupPage::setupWidgets() ...@@ -255,7 +258,6 @@ void TargetSetupPage::setupWidgets()
addWidget(k); addWidget(k);
// Setup import widget: // Setup import widget:
m_baseLayout->addWidget(m_importWidget);
Utils::FileName path = Utils::FileName::fromString(m_projectPath); Utils::FileName path = Utils::FileName::fromString(m_projectPath);
path = path.parentDir(); // base dir path = path.parentDir(); // base dir
path = path.parentDir(); // parent dir path = path.parentDir(); // parent dir
......
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