From bff2ef93854f30a5e2f7316d67360da16f72df81 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Thu, 11 Nov 2021 19:54:44 +0100 Subject: [PATCH] Port away from deprecated QDateTime::.toTime_t method --- src/panels/places/placesitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp index 9cac01f91..18f3f006e 100644 --- a/src/panels/places/placesitem.cpp +++ b/src/panels/places/placesitem.cpp @@ -264,7 +264,7 @@ QString PlacesItem::generateNewId() // " (V2)" to indicate that the ID has been generated by // a new version of the places view. static int count = 0; - return QString::number(QDateTime::currentDateTimeUtc().toTime_t()) + + return QString::number(QDateTime::currentDateTimeUtc().toSecsSinceEpoch()) + '/' + QString::number(count++) + " (V2)"; } -- 2.47.3