summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 1f252696..a771e3d7 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -439,15 +439,10 @@ void MainView::cloneTab(int index)
if (index < 0 || index >= count())
return;
- WebTab *tab = newWebTab();
KUrl url = webTab(index)->url();
-
- // workaround against bug in webkit:
- // only set url if it is not empty
- // otherwise the current working directory will be used
- if (!url.isEmpty())
- tab->view()->setUrl(url);
-
+
+ Application::instance()->loadUrl(url, Rekonq::NewTab);
+
updateTabBar();
}