mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
be63bb162e
commit
3649963bc4
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue