diff options
author | Taiane Ramos <exhora.tat@gmail.com> | 2013-11-05 23:15:19 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-07 12:40:39 +0900 |
commit | abd54cad611fe0fc962ccbbb1f2d0dab24580daf (patch) | |
tree | f610668a27f8196261443c9b614abfc5ae1632ea /qt-ui/maintab.cpp | |
parent | 1c3a1a95929335495795af6c8dfff2a2b368cca2 (diff) | |
download | subsurface-abd54cad611fe0fc962ccbbb1f2d0dab24580daf.tar.gz |
Fix for equipment tab cancel button bug
On equipment tab, when editing a cell and then clicking on cancel button,
it would delete all the cylinders table. Now it performs the original
behaviour of recovering the original value of the cell and don't delete
the table.
Signed-off-by: exhora <exhora.tat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 69d1b0b15..dfcb48a0c 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -588,7 +588,7 @@ void MainTab::rejectChanges() mydive->weightsystem[i] = notesBackup[mydive].weightsystem[i]; } } - if (selected_dive > 0) { + if (selected_dive >= 0) { multiEditEquipmentPlaceholder = *get_dive(selected_dive); cylindersModel->setDive(&multiEditEquipmentPlaceholder); weightModel->setDive(&multiEditEquipmentPlaceholder); |