mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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:
parent
765e5b76e6
commit
88fb82411e
1 changed files with 3 additions and 0 deletions
|
@ -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("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue