mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix QWebEngineView's navigation request issue in Qt 5.12
This commit is contained in:
parent
470a40c80b
commit
bda9bf51c1
@ -24,6 +24,9 @@ bool VPreviewPage::acceptNavigationRequest(const QUrl &p_url,
|
||||
}
|
||||
} else if (!p_isMainFrame) {
|
||||
return true;
|
||||
} else if (p_url.scheme() == "data") {
|
||||
// Qt 5.12 will trigger this when calling QWebEngineView.setHtml().
|
||||
return true;
|
||||
}
|
||||
|
||||
QDesktopServices::openUrl(p_url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user