activities: check nullptr after the cast
This commit is contained in:
parent
755e8a5c64
commit
fdf89fd11a
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void Activities::reallyStop(const QString &id)
|
|||
const auto windows = ws->windows();
|
||||
for (auto *const window : windows) {
|
||||
auto x11Window = qobject_cast<X11Window *>(window);
|
||||
if (!window || window->isUnmanaged()) {
|
||||
if (!x11Window || window->isUnmanaged()) {
|
||||
continue;
|
||||
}
|
||||
if (window->isDesktop()) {
|
||||
|
|
Loading…
Reference in a new issue