diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-06-12 19:05:17 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-06-12 19:05:17 (GMT) |
commit | 1a97bc5091f8b302940b7cc8eb1dbb55c3411d64 (patch) | |
tree | 9ad3d0a4c7119f8e587692d100866f2a7ff47ed0 /doc/src/snippets/code/src_opengl_qglpixelbuffer.cpp | |
parent | 43c2996c4ffea74776de26defa277b0a886d15c1 (diff) | |
download | Qt-1a97bc5091f8b302940b7cc8eb1dbb55c3411d64.zip Qt-1a97bc5091f8b302940b7cc8eb1dbb55c3411d64.tar.gz Qt-1a97bc5091f8b302940b7cc8eb1dbb55c3411d64.tar.bz2 |
Crash fix for task #255989
Hold a QPointer to the widget with the context menu. After the menu
pops up, the focussed widget looses focus and may be deleted (like
it happens in this case with the item editor). Testing for isNull()
instead of crashing.
It would be great to not even add the "Action" entry to the system menu
but in that moment we don't know that the current focuswidget will
soon disappear. That's still a Todo.
Diffstat (limited to 'doc/src/snippets/code/src_opengl_qglpixelbuffer.cpp')
0 files changed, 0 insertions, 0 deletions