diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-18 10:47:00 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-18 08:34:00 -0800 |
commit | 85d3817bd211cb7310182851289f51aa79dd398c (patch) | |
tree | f06a8618f44c7bf4a882d7f583437e9afe6ecd6d /qt-ui/simplewidgets.cpp | |
parent | 4af39b7e37f6b8ecf0dceac0dfd22b91cb4c09d6 (diff) | |
download | subsurface-85d3817bd211cb7310182851289f51aa79dd398c.tar.gz |
Connect Tagfilter to its parrent
This plugs another leak found by valgrind.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |