summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-08 23:18:01 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-05 10:14:25 -0800
commita4c95fd8e8fa4b9a344ac437cfc0e01fc852f277 (patch)
treea4649922ed9dcaba377a361a2730ebeee17eb913
parent72c6b838662f1fb79a806ac2264c7215efa0aa67 (diff)
downloadsubsurface-a4c95fd8e8fa4b9a344ac437cfc0e01fc852f277.tar.gz
Cleanup: remove WeightModel::changed
Since changes to the weight model are not modal anymore, nobody queries the changed-flag. Remove it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/tab-widgets/TabDiveEquipment.cpp4
-rw-r--r--qt-models/weightmodel.cpp1
-rw-r--r--qt-models/weightmodel.h1
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: