aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-18 10:47:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-18 08:34:00 -0800
commit4af39b7e37f6b8ecf0dceac0dfd22b91cb4c09d6 (patch)
tree6e01918cd45eddad7f8df0609c3a1eee311b939c /qt-ui
parent508f930660012a236e5662ecdf59e5c86040a872 (diff)
downloadsubsurface-4af39b7e37f6b8ecf0dceac0dfd22b91cb4c09d6.tar.gz
Connect TankUseDelegate to its parrent
This plugs a memory leak found with valgrind. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/modeldelegates.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 6eac66f87..d2bdadc3b 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -289,9 +289,8 @@ QWidget *TankInfoDelegate::createEditor(QWidget *parent, const QStyleOptionViewI
return delegate;
}
-TankUseDelegate::TankUseDelegate(QObject *parent)
+TankUseDelegate::TankUseDelegate(QObject *parent) : QStyledItemDelegate(parent)
{
-
}
QWidget *TankUseDelegate::createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index) const