summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-07-29 15:58:34 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-07-29 15:58:34 +0200
commitc284bc1dd89dd60371b8ff128781552a464aa7fc (patch)
tree4f57349e2c51e080d7fad2234c7407da3d804b52
parentEnable raster engine by default on X11 (diff)
downloadrekonq-c284bc1dd89dd60371b8ff128781552a464aa7fc.tar.xz
Fix bug and remove webkit workaround
BUG: 244121
-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();
}