summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 0c7ad356..0b981633 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -107,7 +107,13 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
QWebPage *WebPage::createWindow(QWebPage::WebWindowType type)
{
- Q_UNUSED(type);
+ // added to manage web modal dialogs
+ if(type == QWebPage::WebModalDialog)
+ {
+ WebView *w = new WebView;
+ return w->page();
+ }
+
if (m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton)
{
m_openInNewTab = true;