aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-30 19:11:16 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-30 19:11:16 -0400
commit83b14629d88038b6e2ac2fbb1d9cfe66fe1da7b9 (patch)
treedfde45876ac5c5c2c017a656565015c7e2046749 /qt-ui/locationinformation.cpp
parentebc3b148dbb57d8da77cfa93e22d77fffc2b9ea1 (diff)
downloadsubsurface-83b14629d88038b6e2ac2fbb1d9cfe66fe1da7b9.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r--qt-ui/locationinformation.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}