]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.cpp
Fix deprecation warning (from|toTime_t)
[lyx.git] / src / support / FileName.cpp
index 5295741e1abc9faafc404695d73356edcc6583ff..69e0211c5f42953575c015934e0a11459693d2d3 100644 (file)
@@ -519,7 +519,12 @@ time_t FileName::lastModified() const
        // been touched between the object creation and now, we refresh the file
        // information.
        d->refresh();
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
+       return d->fi.lastModified().toSecsSinceEpoch();
+#else
        return d->fi.lastModified().toTime_t();
+#endif
+       
 }