summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-20 00:57:19 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-24 11:29:22 +0100
commitaab36b488647e298857b7ec24bce0f2b143e4520 (patch)
tree7f4f1ff8c3f53a2da82ad8d8ff052c8a78f976ca /src/webview.cpp
parentpedantic..TODO (diff)
downloadrekonq-aab36b488647e298857b7ec24bce0f2b143e4520.tar.xz
working on fixing font problem..
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;