diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-05-26 16:59:06 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-26 21:46:29 -0700 |
commit | 562ee7410caba9b4f7aeb24fafc5c6a7b3c36914 (patch) | |
tree | 6d72a47166bcfbffbab321e65f158c9cecbc1aa8 /qt-ui | |
parent | 46aa97bfc42358204d534d06e9bcf72028dd1897 (diff) | |
download | subsurface-562ee7410caba9b4f7aeb24fafc5c6a7b3c36914.tar.gz |
Don't setLocationId when accept/reject changes
setLocationId will filter the dives, so ignore the visual changes when
accepting / rejecting, it will only be triggered again when we are showing
this dialog again.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/locationinformation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index de7899167..67fb5d5ac 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -140,10 +140,8 @@ void LocationInformationWidget::acceptChanges() if (dive_site_is_empty(currentDs)) { delete_dive_site(currentDs->uuid); displayed_dive.dive_site_uuid = 0; - setLocationId(0); - } else { - setLocationId(currentDs->uuid); } + mark_divelist_changed(true); resetState(); emit informationManagementEnded(); @@ -156,10 +154,8 @@ void LocationInformationWidget::rejectChanges() if (dive_site_is_empty(currentDs)) { delete_dive_site(currentDs->uuid); displayed_dive.dive_site_uuid = 0; - setLocationId(0); - } else { - setLocationId(currentDs->uuid); } + resetState(); emit informationManagementEnded(); emit coordinatesChanged(); |