]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port away from deprecated QDateTime::.toTime_t method
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 11 Nov 2021 18:54:44 +0000 (19:54 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 1 Dec 2021 22:10:58 +0000 (22:10 +0000)
src/panels/places/placesitem.cpp

index 9cac01f91cd8253a0842a87f537c898920d5a503..18f3f006e3963eb4ed76b6cbb3245ff2bafd74ec 100644 (file)
@@ -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)";
 }