mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
92dc441f02
commit
5886550434
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue