From 83b14629d88038b6e2ac2fbb1d9cfe66fe1da7b9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 30 Sep 2015 19:11:16 -0400 Subject: Don't emit the filter end signal too soon First make sure all the data in displayed dive is correctly recorded, otherwise things could get overwritten when the filter is removed and we redisplay the current dive. Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index ea735752a..6fb2cdbe8 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -121,7 +121,6 @@ void LocationInformationWidget::updateGpsCoordinates() void LocationInformationWidget::acceptChanges() { - emit stopFilterDiveSite(); char *uiString; struct dive_site *currentDs; uiString = ui.diveSiteName->text().toUtf8().data(); @@ -162,6 +161,7 @@ void LocationInformationWidget::acceptChanges() resetState(); emit endRequestCoordinates(); emit endEditDiveSite(); + emit stopFilterDiveSite(); emit coordinatesChanged(); } -- cgit v1.2.3-70-g09d2