Mercurial > retraceit
changeset 8:ac4db84f1d9d
Fix date format in player window
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 25 Mar 2015 14:25:21 +0100 |
parents | c11fe56aa4a2 |
children | e3c8f61e45a9 |
files | src/pngplayer.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pngplayer.cpp Wed Mar 25 14:25:10 2015 +0100 +++ b/src/pngplayer.cpp Wed Mar 25 14:25:21 2015 +0100 @@ -115,7 +115,8 @@ mSlider->setMaximum(max); mPositionLabel->setText("<b>" + tr("Screenshot Nr.:") + " </b>" + QString("%1 (%2)").arg(current).arg(max) + " / <b>" + - tr("Timestamp:") + " </b>" + timestamp.toString(LONG_DATE_FORMAT)); + tr("Timestamp:") + " </b>" + (timestamp.isValid() ? + timestamp.toString(LONG_DATE_FORMAT) : tr("Unknown"))); if (mMax == current && mAdvanceTimer.isActive()) { togglePlay();