macOS: Fix WebView print hang

At least under macOS 11 calling just runOperation: hangs, so use
runOperationModalForWindow: instead.

Closes https://github.com/wxWidgets/wxWidgets/pull/2198

Closes #19063.
This commit is contained in:
Tobias Taschner
2021-01-28 10:33:16 +01:00
committed by Vadim Zeitlin
parent d932e89d40
commit 7532f93f7e

View File

@@ -271,7 +271,8 @@ void wxWebViewWebKit::Print()
[op setShowsProgressPanel: false];
}
// Print it.
[op runOperation];
[op runOperationModalForWindow:m_webView.window
delegate:nil didRunSelector:nil contextInfo:nil];
}
void wxWebViewWebKit::SetEditable(bool WXUNUSED(enable))