Commit babf0252 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix open url in current webengineview

parent 0a5b1da3
......@@ -122,3 +122,12 @@ void SieveEditorWebEngineView::contextMenuEvent(QContextMenuEvent *ev)
menu.exec(ev->globalPos());
}
QWebEngineView *SieveEditorWebEngineView::createWindow(QWebEnginePage::WebWindowType type)
{
Q_UNUSED(type);
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
return this;
#else
return Q_NULLPTR;
#endif
}
......@@ -31,6 +31,7 @@ public:
protected:
void contextMenuEvent(QContextMenuEvent *ev) Q_DECL_OVERRIDE;
QWebEngineView *createWindow(QWebEnginePage::WebWindowType type) Q_DECL_OVERRIDE;
private:
void downloadRequested(QWebEngineDownloadItem *);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment