From 37df381404e944f1a8435e1fa071e3528e119e78 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 11 Jan 2016 19:07:48 +0100 Subject: [PATCH] Proper parenting. --- src/modules/partition/gui/ChoicePage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 89649d9b5..a20257db8 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -622,10 +622,10 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice ) "then drag to resize" ) ); m_selectLabel->show(); - m_afterPartitionSplitterWidget = new PartitionSplitterWidget; + m_afterPartitionSplitterWidget = new PartitionSplitterWidget( m_previewAfterFrame ); layout->addWidget( m_afterPartitionSplitterWidget ); - QLabel* sizeLabel = new QLabel; + QLabel* sizeLabel = new QLabel( m_previewAfterFrame ); layout->addWidget( sizeLabel ); sizeLabel->setWordWrap( true ); connect( m_afterPartitionSplitterWidget, &PartitionSplitterWidget::partitionResized,