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
1 changed files with 1 additions and 1 deletions

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) {