diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-08-26 09:10:02 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-09-01 02:29:43 (GMT) |
commit | 8ca075aa4beece8cd45240679e4ca152fc0b03a5 (patch) | |
tree | d1cbf15c6bf25918a79a613530073fb488c15e5d /doc/src/snippets/code/src_gui_image_qimagereader.cpp | |
parent | 8b2b26b3e45f58ce184f45d806093eae17ad657b (diff) | |
download | Qt-8ca075aa4beece8cd45240679e4ca152fc0b03a5.zip Qt-8ca075aa4beece8cd45240679e4ca152fc0b03a5.tar.gz Qt-8ca075aa4beece8cd45240679e4ca152fc0b03a5.tar.bz2 |
Cocoa: Demo browser can get stuck after closing modal dialog
This turns out to be a glitch in the event dispatcher for Qt/Cocoa.
The problem is that you can, in some really slim cases it must be, end up
calling processEvents with the exec flag set, while the current modal
dialog has been told to leave modal. In that case, we recurse into
a new event dispatching loop for a session that is about to die. And
that causes problems when the session actually dies. This patch makes
sure that you cannon start spinning a session that is about to die, by
setting the sessionCache to zero.
Task-number: QTBUG-13164
Reviewed-by: Tor Arne
(cherry picked from commit a373648fa876a9684394aa9b7ecafd51e53f4742)
Diffstat (limited to 'doc/src/snippets/code/src_gui_image_qimagereader.cpp')
0 files changed, 0 insertions, 0 deletions