From 85d3817bd211cb7310182851289f51aa79dd398c Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 18 Dec 2014 10:47:00 -0800 Subject: [PATCH] Connect Tagfilter to its parrent This plugs another leak found by valgrind. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index d03f9f979..fc96fce40 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -611,7 +611,7 @@ MultiFilter::MultiFilter(QWidget *parent) : QWidget(parent) QWidget *expandedWidget = new QWidget(); QHBoxLayout *l = new QHBoxLayout(); - TagFilter *tagFilter = new TagFilter(); + TagFilter *tagFilter = new TagFilter(this); int minimumHeight = tagFilter->ui.filterInternalList->height() + tagFilter->ui.verticalLayout->spacing() * tagFilter->ui.verticalLayout->count();