diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-15 20:33:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-15 20:36:25 -0700 |
commit | 0cf55d7e39316b4b3fc271f556e8ff8abfae8db0 (patch) | |
tree | d53944f486d5688a0d89d5ae2e68c94ed03e0df3 /qt-ui/models.cpp | |
parent | 327ea3aca4ca5ced8593f702de4f68603a8dad22 (diff) | |
download | subsurface-0cf55d7e39316b4b3fc271f556e8ff8abfae8db0.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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(); |