do not access possibly deleted memory

This commit is contained in:
Luboš Luňák 2011-09-30 18:58:44 +02:00
parent e6fa2e4311
commit 2f1bb4f4a3

View file

@ -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...
}