From 99e2ed7fa88c9e30cc5aed788d08b52bd328f8c9 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Wed, 31 Oct 2007 09:42:09 +0000 Subject: [PATCH] Set trans_popup to 0 when creating the popup menu and compositing is off. This prevents trans_popup from becoming dangling pointer and fixes crash when reopening popup menu after turning off compositing. svn path=/trunk/KDE/kdebase/workspace/; revision=731306 --- useractions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/useractions.cpp b/useractions.cpp index ef397f59fb..f296b94c59 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -109,6 +109,7 @@ QMenu* Workspace::clientPopup() action = popup->addMenu( advanced_popup ); action->setText( i18n("Ad&vanced") ); + trans_popup = 0; if (compositing()){ trans_popup = new QMenu( popup ); trans_popup->setFont(KGlobalSettings::menuFont());