From 3209ca0e2d4243c861c3d1d6022ba1da4f9f2fc8 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 1 Feb 2021 21:14:58 +0100 Subject: New upstream version 2.3.0+repack --- widgets/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'widgets/mainwindow.cpp') diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 7ddeee77..0c94507b 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7249,7 +7249,12 @@ void MainWindow::rigFailure (QString const& reason) { if (m_splash && m_splash->isVisible ()) m_splash->hide (); m_rigErrorMessageBox.setDetailedText (reason + "\n\nTimestamp: " - + QDateTime::currentDateTimeUtc ().toString (Qt::ISODateWithMs)); +#if QT_VERSION >= QT_VERSION_CHECK (5, 8, 0) + + QDateTime::currentDateTimeUtc ().toString (Qt::ISODateWithMs) +#else + + QDateTime::currentDateTimeUtc ().toString ("yyyy-MM-ddTHH:mm:ss.zzzZ") +#endif + ); // don't call slot functions directly to avoid recursion m_rigErrorMessageBox.exec (); -- cgit v1.2.3