Fix crash when closing QFontDialog::getFont() dialog
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Mon, 3 Jan 2011 14:08:22 +0000 (15:08 +0100)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Mon, 3 Jan 2011 15:07:40 +0000 (16:07 +0100)
commit00cf748fa3d241e52dc0908da90864ea397dab8a
treed128aa9aa3d7e328d9e7996a4c311f3fc430fad1
parent8ff74f9008b8846624a9da299beb23949af7c249
Fix crash when closing QFontDialog::getFont() dialog

Unfortunately, given the large number of ways of showing a QFontDialog, it's
possible that we try to close the dialog before its event loop is finished.
Setting the Cocoa font panel's isReleaseOnClose property to FALSE ensures the
panel is still around when we effectively exit the dialog's event loop.

Reviewed-by: Richard
Task-number: QTBUG-15666
src/gui/dialogs/qfontdialog_mac.mm