From cd2b3cb73ee50e73f298adf20a2e490a4d2aa5ca Mon Sep 17 00:00:00 2001 From: Reverier-Xu Date: Thu, 14 Mar 2024 01:46:15 +0800 Subject: [PATCH] mpris2: Fix mpris:trackid type with Plasma 6 --- src/core/mpris_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mpris_common.h b/src/core/mpris_common.h index c17dfc5f..e120eb22 100644 --- a/src/core/mpris_common.h +++ b/src/core/mpris_common.h @@ -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(metadata); } inline QString AsMPRISDateTimeType(const qint64 time) {