From be58262f0fc803a8666c63544c62108eab4f7996 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 13 Jan 2018 00:39:34 +0100 Subject: [PATCH] Ref T199, do not display 0 timestamp and re-display timestamp after copy --- src/blackgui/components/setuploadingdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blackgui/components/setuploadingdialog.cpp b/src/blackgui/components/setuploadingdialog.cpp index 68c90354d..5022e670c 100644 --- a/src/blackgui/components/setuploadingdialog.cpp +++ b/src/blackgui/components/setuploadingdialog.cpp @@ -130,7 +130,8 @@ namespace BlackGui // reset if it was temporarily ignored const CSetupReader *sr = sApp->getSetupReader(); const QDateTime setupTs = sr->getSetupCacheTimestamp(); - ui->le_SetupCache->setText(setupTs.isValid() ? + static const QDateTime zeroTime = QDateTime::fromMSecsSinceEpoch(0); + ui->le_SetupCache->setText(setupTs.isValid() && setupTs > zeroTime ? setupTs.toString(Qt::ISODateWithMs) : "No cache timestamp"); } @@ -170,6 +171,7 @@ namespace BlackGui const int r = m_copyFromOtherSwiftVersion->exec(); Q_UNUSED(r); + this->displaySetupCacheInfo(); } void CSetupLoadingDialog::onSetupHandlingCompleted(bool success)