diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-01 08:49:40 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-01 10:26:13 +0100 |
commit | ac505600f31fa23ddf87965caea9313e764456f8 (patch) | |
tree | 203536d7cde72db93da8aed4afafafeb17f07f32 | |
parent | c4e1e96032df3247a4a5f3243c55a51c723d3ae1 (diff) | |
download | subsurface-ac505600f31fa23ddf87965caea9313e764456f8.tar.gz |
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 <jlmulder@xs4all.nl>
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |