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>
This commit is contained in:
Berthold Stoeger 2019-07-10 23:13:54 +02:00 committed by Robert C. Helling
parent 92dc441f02
commit 5886550434

View file

@ -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));