[plasma/kdeplasma-addons/Plasma/6.6] applets/mediaframe: applets/mediaframe: Fix media not updating when watched file changes on disk

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f132307c06bd982dc08088f5c04f88781fa33aa1 by Nate Graham.
Committed on 22/07/2026 at 16:09.
Pushed by ngraham into branch 'Plasma/6.6'.

applets/mediaframe: Fix media not updating when watched file changes on disk

Emit correct file:// URL from slotItemChanged.

BUG: 521538
FIXED-IN: 6.6.7


(cherry picked from commit d7576bc86082f0078978fc56d7482f06ae970982)

7688a942 applets/mediaframe: Fix media not updating when the watched file changes on disk

Co-authored-by: David Wild <[email protected]>

M  +1    -1    applets/mediaframe/mediaframe.cpp

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/f132307c06bd982dc08088f5c04f88781fa33aa1

diff --git a/applets/mediaframe/mediaframe.cpp b/applets/mediaframe/mediaframe.cpp
index 265d8a6ce..7f87e5fd9 100644
--- a/applets/mediaframe/mediaframe.cpp
+++ b/applets/mediaframe/mediaframe.cpp
@@ -337,7 +337,7 @@ int MediaFrame::futureLength() const
 
 void MediaFrame::slotItemChanged(const QString &path)
 {
-    Q_EMIT itemChanged(path);
+    Q_EMIT itemChanged(QUrl::fromLocalFile(path).toString());
 }
 
 void MediaFrame::slotFinished(KJob *job)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.