diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divelistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index e3934b604..6edb69705 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -278,7 +278,7 @@ QString DiveListModel::startAddDive() nr++; d->number = nr; d->dc.model = strdup("manually added dive"); - add_single_dive(-1, d); + add_single_dive(dive_table.nr, d); insertDive(get_idx_by_uniq_id(d->id), new DiveObjectHelper(d)); return QString::number(d->id); } |