From 3649963bc457b527f2c0a9768ba36ee912a8880c Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sun, 26 Nov 2017 11:23:00 +0100 Subject: 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 --- desktop-widgets/tab-widgets/maintab.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/tab-widgets/maintab.cpp') 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); } -- cgit v1.2.3-70-g09d2