1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 17:14:58 +01:00

mpris2: Fix mpris:trackid type with Plasma 6

This commit is contained in:
Reverier-Xu 2024-03-14 01:46:15 +08:00 committed by Jonas Kvinge
parent 88b5cf2461
commit cd2b3cb73e

View File

@ -57,7 +57,7 @@ inline void AddMetadata(const QString &key, const QDateTime &metadata, QVariantM
}
inline void AddMetadata(const QString &key, const QDBusObjectPath &metadata, QVariantMap *map) {
if (metadata.path().length() > 0) (*map)[key] = metadata;
if (metadata.path().length() > 0) (*map)[key] = QVariant::fromValue<QDBusObjectPath>(metadata);
}
inline QString AsMPRISDateTimeType(const qint64 time) {