In maintab clear location tags when selecting a dive w/o dive site

Until now when selecting a dive w/o dive site after having a previous
dive with dive site and location tags displayed, the location tags of the
previously selected dive where still displayed.

This fixes this behavior.

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-11-26 11:23:00 +01:00 committed by Lubomir I. Ivanov
parent be63bb162e
commit 3649963bc4

View file

@ -461,6 +461,7 @@ void MainTab::updateDiveInfo(bool clear)
ui.locationTags->setText(constructLocationTags(ds, true));
} else {
ui.location->clear();
ui.locationTags->clear();
clear_dive_site(&displayed_dive_site);
}