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>
This commit is contained in:
Dirk Hohndel 2015-09-30 19:11:16 -04:00
parent ebc3b148db
commit 83b14629d8

View file

@ -121,7 +121,6 @@ void LocationInformationWidget::updateGpsCoordinates()
void LocationInformationWidget::acceptChanges() void LocationInformationWidget::acceptChanges()
{ {
emit stopFilterDiveSite();
char *uiString; char *uiString;
struct dive_site *currentDs; struct dive_site *currentDs;
uiString = ui.diveSiteName->text().toUtf8().data(); uiString = ui.diveSiteName->text().toUtf8().data();
@ -162,6 +161,7 @@ void LocationInformationWidget::acceptChanges()
resetState(); resetState();
emit endRequestCoordinates(); emit endRequestCoordinates();
emit endEditDiveSite(); emit endEditDiveSite();
emit stopFilterDiveSite();
emit coordinatesChanged(); emit coordinatesChanged();
} }