QPrintDialog OSX: Fix qApp->processEvents arguments
The call to processEvents had the flags separated by a comma instead of bitwise OR. This worked because processEvents has an optional second argument that is an int. Change-Id: I6dc74bc44b1d782aa7206f106c51c16eab5f2a76 Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
This commit is contained in:
parent
3438fb961a
commit
37fd82b962
@ -239,7 +239,7 @@ void QPrintDialogPrivate::openCocoaPrintPanel(Qt::WindowModality modality)
|
|||||||
// Call processEvents in case the event dispatcher has been interrupted, and needs to do
|
// Call processEvents in case the event dispatcher has been interrupted, and needs to do
|
||||||
// cleanup of modal sessions. Do this before showing the native dialog, otherwise it will
|
// cleanup of modal sessions. Do this before showing the native dialog, otherwise it will
|
||||||
// close down during the cleanup (QTBUG-17913):
|
// close down during the cleanup (QTBUG-17913):
|
||||||
qApp->processEvents(QEventLoop::ExcludeUserInputEvents, QEventLoop::ExcludeSocketNotifiers);
|
qApp->processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers);
|
||||||
|
|
||||||
QT_MANGLE_NAMESPACE(QCocoaPrintPanelDelegate) *delegate = [[QT_MANGLE_NAMESPACE(QCocoaPrintPanelDelegate) alloc] initWithNSPrintInfo:printInfo];
|
QT_MANGLE_NAMESPACE(QCocoaPrintPanelDelegate) *delegate = [[QT_MANGLE_NAMESPACE(QCocoaPrintPanelDelegate) alloc] initWithNSPrintInfo:printInfo];
|
||||||
if (modality == Qt::ApplicationModal || !q->parentWidget()) {
|
if (modality == Qt::ApplicationModal || !q->parentWidget()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user