]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiApplication.cpp
Fix deprecation warning (from|toTime_t)
[lyx.git] / src / frontends / qt / GuiApplication.cpp
index 0ed875ff779361f8aaabc5a7ae7bb918e8e98cef..e500fa003c0175a30690b0dd2be3e0e2ad82c07a 100644 (file)
@@ -1089,7 +1089,7 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
 #endif
 
 #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
-       QRandomGenerator(QDateTime::currentDateTime().toTime_t());
+       QRandomGenerator(QDateTime::currentDateTime().toSecsSinceEpoch());
 #else
        qsrand(QDateTime::currentDateTime().toTime_t());
 #endif