diff --git a/client.cpp b/client.cpp index 5ea2286582..4fe24e6f6d 100644 --- a/client.cpp +++ b/client.cpp @@ -214,7 +214,7 @@ void Client::releaseWindow(bool on_shutdown) deleting = true; #ifdef KWIN_BUILD_TABBOX TabBox::TabBox *tabBox = TabBox::TabBox::self(); - if (tabBox && tabBox->isDisplayed() && tabBox->currentClient() == this) { + if (tabBox->isDisplayed() && tabBox->currentClient() == this) { tabBox->nextPrev(true); } #endif diff --git a/workspace.cpp b/workspace.cpp index 8dbf5e6295..d63b666e14 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1792,7 +1792,7 @@ void Workspace::updateTabbox() { #ifdef KWIN_BUILD_TABBOX TabBox::TabBox *tabBox = TabBox::TabBox::self(); - if (tabBox && tabBox->isDisplayed()) { + if (tabBox->isDisplayed()) { tabBox->reset(true); } #endif diff --git a/xdgshellclient.cpp b/xdgshellclient.cpp index 9313d854fe..f202a9e53b 100644 --- a/xdgshellclient.cpp +++ b/xdgshellclient.cpp @@ -374,7 +374,7 @@ void XdgShellClient::destroyClient() m_closing = true; #ifdef KWIN_BUILD_TABBOX TabBox::TabBox *tabBox = TabBox::TabBox::self(); - if (tabBox && tabBox->isDisplayed() && tabBox->currentClient() == this) { + if (tabBox->isDisplayed() && tabBox->currentClient() == this) { tabBox->nextPrev(true); } #endif