summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 4f6ba097..216c2bd1 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -220,8 +220,8 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
void WebView::openLinkInNewTab(const KUrl &url)
{
- Application::instance()->newWebView();
- load(url);
+ WebView *that = Application::instance()->newWebView();
+ that->load(url);
}