From c1d5937a665a6520f41f6a159c00b043bdba5cc1 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 22 Feb 2009 14:49:23 +0000 Subject: [PATCH] SVN_SILENT Fix crash in box switch. CCBUG: 185239 svn path=/trunk/KDE/kdebase/workspace/; revision=930005 --- effects/boxswitch/boxswitch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/boxswitch/boxswitch.cpp b/effects/boxswitch/boxswitch.cpp index c1e38b6aa7..c6567d8c74 100644 --- a/effects/boxswitch/boxswitch.cpp +++ b/effects/boxswitch/boxswitch.cpp @@ -495,7 +495,8 @@ void BoxSwitchEffect::setSelectedWindow( EffectWindow* w ) effects->setElevatedWindow( selected_window, false ); } selected_window = w; - thumbnailFrame.setText( selected_window->caption() ); + if( selected_window ) + thumbnailFrame.setText( selected_window->caption() ); if( elevate_window && w ) { effects->setElevatedWindow( selected_window, true );