From fb8fc3001bbfc7d4eb2b943890f32395f526c895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 11 Jan 2010 21:24:00 +0000 Subject: [PATCH] Do not add NULL effect windows to the motion manager. BUG: 222193 svn path=/trunk/KDE/kdebase/workspace/; revision=1073247 --- effects/presentwindows/presentwindows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 4026fac6f4..a3f6a585ff 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -1544,6 +1544,8 @@ void PresentWindowsEffect::setActive( bool active, bool closingTab ) { foreach( EffectWindow *w, effects->currentTabBoxWindowList() ) { + if( !w ) + continue; m_motionManager.manage( w ); assert( m_windowData.contains( w )); m_windowData[w].visible = effects->currentTabBoxWindowList().contains( w );