summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-01-15 18:52:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 12:15:47 +0700
commit6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11 (patch)
tree424ad29366d0ac0a09be8540b365342aca7f27dd /qt-ui/diveplanner.cpp
parenta27f67c02612791fad73b4e0550d942dc3a5a339 (diff)
downloadsubsurface-6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11.tar.gz
Fix some memory leaks.
Memory leaks were caused by broken parent/child relations. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 166de8308..7fa1a8783 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -960,7 +960,7 @@ DivePlannerWidget::DivePlannerWidget(QWidget* parent, Qt::WindowFlags f): QWidge
view->setColumnHidden(CylindersModel::START, true);
view->setColumnHidden(CylindersModel::END, true);
view->setColumnHidden(CylindersModel::DEPTH, false);
- view->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate());
+ view->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate(this));
connect(ui.cylinderTableWidget, SIGNAL(addButtonClicked()), DivePlannerPointsModel::instance(), SLOT(addCylinder_clicked()));
connect(ui.tableWidget, SIGNAL(addButtonClicked()), DivePlannerPointsModel::instance(), SLOT(addStop()));