summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-06-04 00:27:29 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-03 21:43:53 -0700
commit484fdee6fb8f34874a842ca7e3b81077f2a019ec (patch)
tree692bcc5560c2d986f151baae3f7ade62f9d8fa97 /qt-ui/locationinformation.cpp
parent6a09062065e75b510987df18b9c1d16f91c4d919 (diff)
downloadsubsurface-484fdee6fb8f34874a842ca7e3b81077f2a019ec.tar.gz
Fire signals for edit and filtering
Edit will always fire, Filtering only if the dive site already exists. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r--qt-ui/locationinformation.cpp4
1 files changed, 3 insertions, 1 deletions
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()