diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-29 15:58:34 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-29 15:58:34 +0200 |
commit | c284bc1dd89dd60371b8ff128781552a464aa7fc (patch) | |
tree | 4f57349e2c51e080d7fad2234c7407da3d804b52 | |
parent | Enable raster engine by default on X11 (diff) | |
download | rekonq-c284bc1dd89dd60371b8ff128781552a464aa7fc.tar.xz |
Fix bug and remove webkit workaround
BUG: 244121
-rw-r--r-- | src/mainview.cpp | 11 |
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(); } |