diff --git a/group.cpp b/group.cpp index f39c553fc..a4c4b0a9f 100644 --- a/group.cpp +++ b/group.cpp @@ -726,7 +726,7 @@ bool Client::hasTransientInternal(const Client* cl, bool indirect, ConstClientLi for (auto it = transients().constBegin(); it != transients().constEnd(); ++it) { - Client *c = dynamic_cast(*it); + const Client *c = qobject_cast(*it); if (!c) { continue; }