diff options
Diffstat (limited to 'src/webtab/webview.cpp')
-rw-r--r-- | src/webtab/webview.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp index df4af0b3..bb90a58a 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -158,6 +158,19 @@ WebPage *WebView::page() } +void WebView::setPage(WebPage *pg) +{ + KWebView::setPage(pg); + + WebTab *tab = qobject_cast<WebTab *>(parent()); + if (!tab) + return; + WebWindow *w = tab->webWindow(); + if (w && w->window()) + pg->setWindow(w->window()); +} + + bool WebView::popupSpellMenu(QContextMenuEvent *event) { // return false if not handled |