diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-10 23:13:54 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2019-07-11 15:58:30 +0200 |
commit | 5886550434e2c2e3c77880a4ee08f9d192d6984a (patch) | |
tree | 35402663a4f2fda2efabc2f68e31545f06b69c1c /desktop-widgets/tab-widgets/maintab.cpp | |
parent | 92dc441f02c73a972dddf9076e438f19b03708b8 (diff) | |
download | subsurface-5886550434e2c2e3c77880a4ee08f9d192d6984a.tar.gz |
Desktop: clear notes on empty dive
If no dive is set, all fields except the note field were cleared.
Also clear notes.
Fixes #2172
Reported-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-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 927864fb5..4bb7f3bb0 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -589,6 +589,7 @@ void MainTab::updateDiveInfo() ui.buddy->clear(); ui.airtemp->clear(); ui.watertemp->clear(); + ui.notes->clear(); /* set date and time to minimums which triggers showing the special value text */ ui.dateEdit->setSpecialValueText(QString("-")); ui.dateEdit->setMinimumDate(QDate(1, 1, 1)); |