Commit 2acb7214 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

TargetSettingsPanelWidget: Fix small memory leak

Fix a small memory leak spotted by Denis Mingulov.

Task-number: QTCREATORBUG-2338
parent 32cd92bf
......@@ -96,9 +96,9 @@ void TargetSettingsPanelWidget::setupUi()
m_centralWidget = new QStackedWidget(this);
m_selector->setCentralWidget(m_centralWidget);
// no projects label:
// no target label:
m_noTargetLabel = new QWidget;
QVBoxLayout *noTargetLayout = new QVBoxLayout;
QVBoxLayout *noTargetLayout = new QVBoxLayout(m_noTargetLabel);
noTargetLayout->setMargin(0);
QLabel *label = new QLabel(m_noTargetLabel);
label->setText(tr("No target defined."));
......
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