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

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a4ac73acadb6715a557c15294f86295e56659e84 by Vlad Zahorodnii, on behalf of Li Kai.
Committed on 28/07/2026 at 06:32.
Pushed by vladz into branch 'master'.

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.

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

https://invent.kde.org/plasma/kwin/-/commit/a4ac73acadb6715a557c15294f86295e56659e84

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.