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();
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();
}

View file

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

View file

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