diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 360058dfd..ee1ae78ac 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -6,6 +6,7 @@ */ #include "models.h" #include "../helpers.h" +#include "../dive.h" #include <QCoreApplication> #include <QDebug> #include <QColor> @@ -226,7 +227,9 @@ void CylindersModel::remove(const QModelIndex& index) return; } beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly. - // Remove code should be here. + rows--; + remove_cylinder(current, index.row()); + mark_divelist_changed(TRUE); endRemoveRows(); } @@ -236,7 +239,9 @@ void WeightModel::remove(const QModelIndex& index) return; } beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly. - // Remove code should be here. + rows--; + remove_weightsystem(current, index.row()); + mark_divelist_changed(TRUE); endRemoveRows(); } |