From 0cf55d7e39316b4b3fc271f556e8ff8abfae8db0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 15 Jul 2014 20:33:48 -0700 Subject: Correctly track the 'changed' status of the equipment widgets updateDive() cannot reset the changed status - this is called while the dive is edited. Instead this status is reset when the user either accepts or rejects the changes. Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'qt-ui/models.cpp') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 0bdbfccd9..777329cb9 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -312,7 +312,6 @@ void CylindersModel::updateDive() displayed_dive.cylinder[i].manually_added)) rows = i + 1; } - changed = false; if (rows > 0) { beginInsertRows(QModelIndex(), 0, rows - 1); endInsertRows(); @@ -636,7 +635,6 @@ void WeightModel::updateDive() rows = i + 1; } } - changed = false; if (rows > 0) { beginInsertRows(QModelIndex(), 0, rows - 1); endInsertRows(); -- cgit v1.2.3-70-g09d2