I discovered a bug in webkit, where setting an empty url will use the current 
working directory instead. This affects rekonq when an empty tab is cloned.

Please check if this is already fixed in newer Qt versions than 4.5.2. 
Otherwise, here is the workaro... *ahem* ... patch :)
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 6d282e0..e7f8749 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -383,8 +383,15 @@ void MainView::slotCloneTab(int index)
         index = currentIndex();
     if (index < 0 || index >= count())
         return;
-    WebView *tab = newWebView();
-    tab->setUrl(webView(index)->url());
+    
+    WebView *tab = newWebView();    
+    KUrl url = webView(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->setUrl(url);
 
     updateTabBar();
 }
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to