From 562ee7410caba9b4f7aeb24fafc5c6a7b3c36914 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 26 May 2015 16:59:06 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 8 ++------ 1 file 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(); -- cgit v1.2.3-70-g09d2