From 5886550434e2c2e3c77880a4ee08f9d192d6984a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 10 Jul 2019 23:13:54 +0200 Subject: 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 Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets') 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)); -- cgit v1.2.3-70-g09d2