[plasma/kwin/Plasma/6.7] src/effect: effect/quickeffect: fix QuickSceneEffect module reload condition

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 8d4b439b4af7cb52d80f9db1575ee8e046312ede by Vlad Zahorodnii.
Committed on 28/07/2026 at 08:01.
Pushed by vladz into branch 'Plasma/6.7'.

effect/quickeffect: fix QuickSceneEffect module reload condition

Changing only the module URI or type name was ignored because the
delegate was cleared only when both values differed. Clear the delegate
when either part of the module identifier changes.


(cherry picked from commit a4ac73acadb6715a557c15294f86295e56659e84)

Co-authored-by: Li Kai <[email protected]>

M  +1    -1    src/effect/quickeffect.cpp

https://invent.kde.org/plasma/kwin/-/commit/8d4b439b4af7cb52d80f9db1575ee8e046312ede

diff --git a/src/effect/quickeffect.cpp b/src/effect/quickeffect.cpp
index 12a974541c9..8ce8a772392 100644
--- a/src/effect/quickeffect.cpp
+++ b/src/effect/quickeffect.cpp
@@ -300,7 +300,7 @@ void QuickSceneEffect::loadFromModule(const QString &uri, const QString &typeNam
         qWarning() << "Cannot call QuickSceneEffect::loadFromModule while running";
         return;
     }
-    if (d->loadInfo.uri != uri && d->loadInfo.typeName != typeName) {
+    if (d->loadInfo.uri != uri || d->loadInfo.typeName != typeName) {
         d->delegate.clear();
         d->source = QUrl();
         d->loadInfo.uri = uri;
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.