Drop no longer needed cast to Client in TabGroup related code

Differential Revision: https://phabricator.kde.org/D12730
This commit is contained in:
Martin Flöser 2018-05-06 20:36:53 +02:00
parent b6befb4ef8
commit b19c3c1c8e

View file

@ -389,7 +389,7 @@ void Workspace::takeActivity(AbstractClient* c, ActivityFlags flags)
flags &= ~ActivityFocus;
}
if (c->tabGroup() && c->tabGroup()->current() != c)
c->tabGroup()->setCurrent(dynamic_cast<Client*>(c));
c->tabGroup()->setCurrent(c);
if (!c->isShown(true)) { // shouldn't happen, call activateClient() if needed
qCWarning(KWIN_CORE) << "takeActivity: not shown" ;
return;