summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_util_qundostack.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-11-12 09:56:07 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-11-18 03:02:03 (GMT)
commit97b5247b7e9de5eca1dbf321da978aca82e518a3 (patch)
tree391040972f71a3cf9e59c50ab1765c9c922d9cae /doc/src/snippets/code/src_gui_util_qundostack.cpp
parent21695d8d092d1cdc5cdb395b759b581afcf2354c (diff)
downloadQt-97b5247b7e9de5eca1dbf321da978aca82e518a3.zip
Qt-97b5247b7e9de5eca1dbf321da978aca82e518a3.tar.gz
Qt-97b5247b7e9de5eca1dbf321da978aca82e518a3.tar.bz2
Cocoa: QColorDialog makes the application hang
The reason is that the color dialog is using a native dialog. And this dialog enters modality on its own, bypassing the modality mechanism in Qt. Most important, when the dialog leaves modality, it does so by calling [NSApp stopModal]. And this call stops all modal sessions in the application, including the ones owned by Qt. This patch detects when this situation occurs, and makes sure that all modal sessions gets stopped the correct way, and later rebuilt. Rev-By: MortenS (cherry picked from commit 639b9c0286f0f2d5e50121df8d4125f029074510)
Diffstat (limited to 'doc/src/snippets/code/src_gui_util_qundostack.cpp')
0 files changed, 0 insertions, 0 deletions