mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correctly save dive rating after changing it
Corrects typo in ebaa7d1fd
which impeded that changes in dive rating
were saved after editing.
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c6e0b74452
commit
64ba7f8683
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ void MainTab::acceptChanges()
|
|||
MODIFY_SELECTED_DIVES(EDIT_TEXT(suit));
|
||||
if (!same_string(displayed_dive.notes, cd->notes))
|
||||
MODIFY_SELECTED_DIVES(EDIT_TEXT(notes));
|
||||
if (!same_string(displayed_dive.divemaster, cd->divemaster))
|
||||
if (displayed_dive.rating != cd->rating)
|
||||
MODIFY_SELECTED_DIVES(EDIT_VALUE(rating));
|
||||
if (displayed_dive.visibility != cd->visibility)
|
||||
MODIFY_SELECTED_DIVES(EDIT_VALUE(visibility));
|
||||
|
|
Loading…
Add table
Reference in a new issue