mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Merge pull request #1214 from Thaodan/fix_urlscheme_warning
fix qt warning about registering a URL sheme first.
This commit is contained in:
commit
cdc939ae97
1 changed files with 7 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
|||
#include <QWebEngineProfile>
|
||||
#include <QWebEngineUrlRequestInterceptor>
|
||||
#include <QWebEngineUrlRequestJob>
|
||||
#if QT_VERSION >= 0x051200
|
||||
#include <QWebEngineUrlScheme>
|
||||
#endif
|
||||
#include <QWebEngineUrlSchemeHandler>
|
||||
#include <QWebEngineView>
|
||||
#include <QDesktopServices>
|
||||
|
@ -65,7 +68,10 @@ WebView::WebView(QWidget *parent)
|
|||
_ui()
|
||||
{
|
||||
_ui.setupUi(this);
|
||||
|
||||
#if QT_VERSION >= 0x051200
|
||||
QWebEngineUrlScheme _ncsheme("nc");
|
||||
QWebEngineUrlScheme::registerScheme(_ncsheme);
|
||||
#endif
|
||||
_webview = new QWebEngineView(this);
|
||||
_profile = new QWebEngineProfile(this);
|
||||
_page = new WebEnginePage(_profile);
|
||||
|
|
Loading…
Reference in a new issue