From 2f1bb4f4a3d79183a9f10b09f53ea6cda0a4920a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 30 Sep 2011 18:58:44 +0200 Subject: [PATCH] do not access possibly deleted memory --- clients/oxygen/oxygenclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index f05c3e8ebf..0e26099f8b 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1590,8 +1590,8 @@ namespace Oxygen QPoint point = event->pos(); int itemClicked( this->itemClicked( point ) ); - displayClientMenu( itemClicked, widget()->mapToGlobal( event->pos() ) ); _mouseButton = Qt::NoButton; + displayClientMenu( itemClicked, widget()->mapToGlobal( event->pos() ) ); accepted = true; // displayClientMenu can possibly destroy the deco... }