mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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();
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue