BT: Fix a crash when running a widget window modal when it has no parent
commite1bd6e3e69be7ae4612d4c2b5bae6f694cd420c8
authorNorwegian Rock Cat <qt-info@nokia.com>
Mon, 6 Apr 2009 09:30:45 +0000 (6 11:30 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Mon, 6 Apr 2009 10:19:52 +0000 (6 20:19 +1000)
tree71e86fc6c48076e94383017538020ccc319ab0fa
parent4f8b33f7da6e3710e697e189be0ba11212ba8af8
BT: Fix a crash when running a widget window modal when it has no parent

We changed the logic for determining sheets, but it seems we forgot to
take the parentWidget() into account. It's required for WindowModality
to make any sense.

Reviewed-by: Richard Moe Gustavsen
(cherry picked from commit 1e32cdefa382b16eaffc663594ccab1dbe1faebb)
src/gui/kernel/qwidget_mac.mm