mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
72c6b83866
commit
a4c95fd8e8
3 changed files with 0 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#endif
|
||||
|
||||
WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent),
|
||||
changed(false),
|
||||
d(nullptr),
|
||||
tempRow(-1),
|
||||
tempWS(empty_weightsystem)
|
||||
|
|
|
@ -28,7 +28,6 @@ public:
|
|||
void clear();
|
||||
void updateDive(dive *d);
|
||||
weightsystem_t weightSystemAt(const QModelIndex &index) const;
|
||||
bool changed;
|
||||
|
||||
public
|
||||
slots:
|
||||
|
|
Loading…
Reference in a new issue