mpris2: Fix mpris:trackid type with Plasma 6
This commit is contained in:
parent
88b5cf2461
commit
cd2b3cb73e
|
@ -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) {
|
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) {
|
inline QString AsMPRISDateTimeType(const qint64 time) {
|
||||||
|
|
Loading…
Reference in New Issue