summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 11:50:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 11:50:04 -0800
commitec0fc9d70b679b854fb50d685a5dcfe6f1bf7093 (patch)
tree101061bc11e7b413da02b4a4370f0ed8cba99bef /qt-models/divelistmodel.h
parent6f953d51de0796bd584938d759b32eeffb849463 (diff)
downloadsubsurface-ec0fc9d70b679b854fb50d685a5dcfe6f1bf7093.tar.gz
Change the api to update a single dive
Instead of searching for the dive in the list, just make sure we are given the index. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r--qt-models/divelistmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index adc298515..8f52680a4 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -22,7 +22,7 @@ public:
void addDive(dive *d);
void insertDive(int i, DiveObjectHelper *newDive);
void removeDive(int i);
- void updateDive(dive *d);
+ void updateDive(int i, dive *d);
void clear();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;