diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-04 00:24:23 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-03 21:43:30 -0700 |
commit | 6a09062065e75b510987df18b9c1d16f91c4d919 (patch) | |
tree | d22e044592a103d9c1b2f03853cd8f18afed33ec | |
parent | db333226d9662337216b52fc4abccee9d3d664f9 (diff) | |
download | subsurface-6a09062065e75b510987df18b9c1d16f91c4d919.tar.gz |
Only filter by divesite if the divesite exists
And not when we are adding a new dive site.
Also, remove hide button call.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/locationinformation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 3dc46a603..08eb31e60 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -124,9 +124,8 @@ void LocationInformationWidget::rejectChanges() void LocationInformationWidget::showEvent(QShowEvent *ev) { - if (displayed_dive_site.uuid) + if (displayed_dive_site.uuid && current_mode == EDIT_DIVE_SITE) emit startFilterDiveSite(displayed_dive_site.uuid); - ui.diveSiteMessage->setCloseButtonVisible(false); QGroupBox::showEvent(ev); } |