Hack to clear the date when no dive is displayed

This mostly happens with no XML file or when closing the current XML file.
Sadly the user still can click on the empty date field (even if nothing
else is active on the screen) and a date reappears.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-09-22 07:33:09 -07:00
parent 765e5b76e6
commit 88fb82411e

View file

@ -355,6 +355,9 @@ void MainTab::updateDiveInfo(int dive)
ui->tempLimits->clear(); ui->tempLimits->clear();
ui->totalTimeAllText->clear(); ui->totalTimeAllText->clear();
ui->timeLimits->clear(); ui->timeLimits->clear();
/* turns out this is non-trivial for a dateTimeEdit... this is a partial hack */
QLineEdit *le = ui->dateTimeEdit->findChild<QLineEdit*>();
le->setText("");
} }
} }