summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-02-01 21:14:58 +0100
committerChristoph Berg <myon@debian.org>2021-02-01 21:14:58 +0100
commit3209ca0e2d4243c861c3d1d6022ba1da4f9f2fc8 (patch)
treeac0af2c5602184ab3920f1242860945ec6b43bd7 /widgets
parent1c1cf517cea41515f4123691f571b038a53c700b (diff)
New upstream version 2.3.0+repackupstream/2.3.0+repack
Diffstat (limited to 'widgets')
-rw-r--r--widgets/mainwindow.cpp7
1 files changed, 6 insertions, 1 deletions
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 ();