From c284bc1dd89dd60371b8ff128781552a464aa7fc Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 29 Jul 2010 15:58:34 +0200 Subject: Fix bug and remove webkit workaround BUG: 244121 --- src/mainview.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.1