From 6a09062065e75b510987df18b9c1d16f91c4d919 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 4 Jun 2015 00:24:23 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-ui/locationinformation.cpp') 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); } -- cgit v1.2.3-70-g09d2