diff options
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveEquipment.cpp | 4 | ||||
-rw-r--r-- | qt-models/weightmodel.cpp | 1 | ||||
-rw-r--r-- | qt-models/weightmodel.h | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp index ed15c20bc..f731631eb 100644 --- a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp +++ b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp @@ -258,13 +258,11 @@ void TabDiveEquipment::acceptChanges() MainWindow::instance()->graphics->replot(); cylindersModel->changed = false; - weightModel->changed = false; } void TabDiveEquipment::rejectChanges() { cylindersModel->changed = false; - weightModel->changed = false; cylindersModel->updateDive(); weightModel->updateDive(current_dive); } @@ -290,5 +288,3 @@ void TabDiveEquipment::closeWarning() { ui.multiDiveWarningMessage->hide(); } - - diff --git a/qt-models/weightmodel.cpp b/qt-models/weightmodel.cpp index 46b084cae..ec0ea0259 100644 --- a/qt-models/weightmodel.cpp +++ b/qt-models/weightmodel.cpp @@ -11,7 +11,6 @@ #endif WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent), - changed(false), d(nullptr), tempRow(-1), tempWS(empty_weightsystem) diff --git a/qt-models/weightmodel.h b/qt-models/weightmodel.h index 1ef7cdf53..950e96d2b 100644 --- a/qt-models/weightmodel.h +++ b/qt-models/weightmodel.h @@ -28,7 +28,6 @@ public: void clear(); void updateDive(dive *d); weightsystem_t weightSystemAt(const QModelIndex &index) const; - bool changed; public slots: |