From ac505600f31fa23ddf87965caea9313e764456f8 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Mon, 1 Jan 2018 08:49:40 +0100 Subject: desktop: clear tags when hitting new logbook A very simple commit to start 2018. When hitting new logbook from a currently open logbook, and the current dive has tags filled in, they stayed around in the UI. Just clear them. Further, delete an unused variable. Signed-off-by: Jan Mulder --- desktop-widgets/tab-widgets/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index ea78e0264..2f5dd990e 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -585,7 +585,6 @@ void MainTab::updateDiveInfo(bool clear) volume_t gases[MAX_CYLINDERS] = {}; get_gas_used(&displayed_dive, gases); - QString volumes; int mean[MAX_CYLINDERS], duration[MAX_CYLINDERS]; per_cylinder_mean_depth(&displayed_dive, select_dc(&displayed_dive), mean, duration); @@ -629,6 +628,7 @@ void MainTab::updateDiveInfo(bool clear) ui.timeEdit->setSpecialValueText(QString("-")); ui.timeEdit->setMinimumTime(QTime(0, 0, 0, 0)); ui.timeEdit->setTime(QTime(0, 0, 0, 0)); + ui.tagWidget->clear(); } editMode = rememberEM; ui.cylinders->view()->hideColumn(CylindersModel::DEPTH); -- cgit v1.2.3-70-g09d2