From a4c95fd8e8fa4b9a344ac437cfc0e01fc852f277 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 8 Nov 2019 23:18:01 +0100 Subject: 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 --- desktop-widgets/tab-widgets/TabDiveEquipment.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'desktop-widgets/tab-widgets') 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(); } - - -- cgit v1.2.3-70-g09d2