diff --git a/group.cpp b/group.cpp --- a/group.cpp +++ b/group.cpp @@ -726,7 +726,7 @@ for (auto it = transients().constBegin(); it != transients().constEnd(); ++it) { - Client *c = dynamic_cast(*it); + const Client *c = qobject_cast(*it); if (!c) { continue; }