summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-05-29 00:10:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-28 16:12:37 -0700
commit64ba7f8683dd2e766fc5960e75b2f7e0147f4e50 (patch)
tree298006155edb3b3771e11ba42aeb6d15c0bc0992 /qt-ui/maintab.cpp
parentc6e0b744520d52c4f07801a52f580538017ab568 (diff)
downloadsubsurface-64ba7f8683dd2e766fc5960e75b2f7e0147f4e50.tar.gz
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>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 88bcc83e6..3d17bcdbf 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -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));