diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-11-26 11:23:00 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-26 14:17:38 +0100 |
commit | 3649963bc457b527f2c0a9768ba36ee912a8880c (patch) | |
tree | e63aa943009e229a4df81c5392ddd1f376e27f94 /desktop-widgets | |
parent | be63bb162e9cf6aa85d6e1489b4b3d51d2f7798c (diff) | |
download | subsurface-3649963bc457b527f2c0a9768ba36ee912a8880c.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index d5a78a269..c1e2d15af 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -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); } |