From 484fdee6fb8f34874a842ca7e3b81077f2a019ec Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 4 Jun 2015 00:27:29 -0300 Subject: Fire signals for edit and filtering Edit will always fire, Filtering only if the dive site already exists. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 08eb31e60..c1c76bdfb 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -56,7 +56,9 @@ void LocationInformationWidget::setCurrentDiveSiteByUuid(uint32_t uuid) else ui.diveSiteCoordinates->clear(); - emit startFilterDiveSite(displayed_dive_site.uuid); + if (current_mode == EDIT_DIVE_SITE) + emit startFilterDiveSite(displayed_dive_site.uuid); + emit startEditDiveSite(uuid); } void LocationInformationWidget::updateGpsCoordinates() -- cgit v1.2.3-70-g09d2