aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-09 18:47:56 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-09 14:42:06 -0800
commit38f0104d108ebc0c661ce7914c6f3ee9b29b8d3a (patch)
tree7ef6f71c13b019066fe5247eedb0e25d1a557ef6 /qt-ui
parent6ae870bd22ec34d072cbf79b8b9b9bca5b81dc00 (diff)
downloadsubsurface-38f0104d108ebc0c661ce7914c6f3ee9b29b8d3a.tar.gz
DivePlotDataModel improvements
* Add missing improvements::diveId variable member to the initialize list. * Cleanup DivePlotDataModel::pInfo structure instead only one member. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/diveplotdatamodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp
index 31941fef7..cb3b07c50 100644
--- a/qt-ui/profile/diveplotdatamodel.cpp
+++ b/qt-ui/profile/diveplotdatamodel.cpp
@@ -8,9 +8,9 @@
#include "divelist.h"
#include <QDebug>
-DivePlotDataModel::DivePlotDataModel(QObject* parent): QAbstractTableModel(parent)
+DivePlotDataModel::DivePlotDataModel(QObject* parent) : QAbstractTableModel(parent) , diveId(0)
{
- pInfo.nr = 0;
+ memset(&pInfo, 0, sizeof(pInfo));
}
int DivePlotDataModel::columnCount(const QModelIndex& parent) const