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>
This commit is contained in:
Berthold Stoeger 2019-11-08 23:18:01 +01:00 committed by Dirk Hohndel
parent 72c6b83866
commit a4c95fd8e8
3 changed files with 0 additions and 6 deletions

View file

@ -258,13 +258,11 @@ void TabDiveEquipment::acceptChanges()
MainWindow::instance()->graphics->replot(); MainWindow::instance()->graphics->replot();
cylindersModel->changed = false; cylindersModel->changed = false;
weightModel->changed = false;
} }
void TabDiveEquipment::rejectChanges() void TabDiveEquipment::rejectChanges()
{ {
cylindersModel->changed = false; cylindersModel->changed = false;
weightModel->changed = false;
cylindersModel->updateDive(); cylindersModel->updateDive();
weightModel->updateDive(current_dive); weightModel->updateDive(current_dive);
} }
@ -290,5 +288,3 @@ void TabDiveEquipment::closeWarning()
{ {
ui.multiDiveWarningMessage->hide(); ui.multiDiveWarningMessage->hide();
} }

View file

@ -11,7 +11,6 @@
#endif #endif
WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent), WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent),
changed(false),
d(nullptr), d(nullptr),
tempRow(-1), tempRow(-1),
tempWS(empty_weightsystem) tempWS(empty_weightsystem)

View file

@ -28,7 +28,6 @@ public:
void clear(); void clear();
void updateDive(dive *d); void updateDive(dive *d);
weightsystem_t weightSystemAt(const QModelIndex &index) const; weightsystem_t weightSystemAt(const QModelIndex &index) const;
bool changed;
public public
slots: slots: