diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-04 00:27:29 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-03 21:43:53 -0700 |
commit | 484fdee6fb8f34874a842ca7e3b81077f2a019ec (patch) | |
tree | 692bcc5560c2d986f151baae3f7ade62f9d8fa97 /qt-ui/locationinformation.cpp | |
parent | 6a09062065e75b510987df18b9c1d16f91c4d919 (diff) | |
download | subsurface-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.cpp | 4 |
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() |