From 7e5d860cc3e891e3a10038d3db2014311c10b956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 1 Oct 2010 17:48:04 +0000 Subject: [PATCH] Fix possible crasher introduced by the new close window feature svn path=/trunk/KDE/kdebase/workspace/; revision=1181666 --- effects/presentwindows/presentwindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index d2c4b89e17..a42427456a 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -492,7 +492,7 @@ void PresentWindowsEffect::windowInputMouseEvent( Window w, QEvent *e ) break; } } - if( m_motionManager.transformedGeometry( m_highlightedWindow ).contains( me->pos() ) ) + if( m_highlightedWindow && m_motionManager.transformedGeometry( m_highlightedWindow ).contains( me->pos() ) ) updateCloseWindow(); else m_closeView->hide();