mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
1c3a1a9592
commit
abd54cad61
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue