Drop no longer needed dynamic_casts from TabBox
parent
7d5236cac8
commit
704b255234
|
@ -1249,7 +1249,7 @@ void TabBox::KDEOneStepThroughWindows(bool forward, TabBoxMode mode)
|
||||||
setMode(mode);
|
setMode(mode);
|
||||||
reset();
|
reset();
|
||||||
nextPrev(forward);
|
nextPrev(forward);
|
||||||
if (Client* c = dynamic_cast<Client*>(currentClient())) {
|
if (AbstractClient* c = currentClient()) {
|
||||||
Workspace::self()->activateClient(c);
|
Workspace::self()->activateClient(c);
|
||||||
shadeActivate(c);
|
shadeActivate(c);
|
||||||
}
|
}
|
||||||
|
@ -1439,7 +1439,7 @@ void TabBox::close(bool abort)
|
||||||
|
|
||||||
void TabBox::accept()
|
void TabBox::accept()
|
||||||
{
|
{
|
||||||
Client* c = dynamic_cast<Client*>(currentClient());
|
AbstractClient *c = currentClient();
|
||||||
close();
|
close();
|
||||||
if (c) {
|
if (c) {
|
||||||
Workspace::self()->activateClient(c);
|
Workspace::self()->activateClient(c);
|
||||||
|
|
Loading…
Reference in New Issue