diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 3a0eec6828..15c76c5427 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -1708,7 +1708,7 @@ void PresentWindowsEffect::elevateCloseWindow() void PresentWindowsEffect::updateCloseWindow() { - if (m_doNotCloseWindows) + if (!m_closeView || m_doNotCloseWindows) return; if (!m_highlightedWindow || m_highlightedWindow->isDesktop()) { m_closeView->hide();