As per the subject. Minor modifications to add an option for opening the 
defined 
home page when creating a new tab. Option lives in the general page and 
defaults to false (current behaviour).

Feel free to reject out of hand :) But I thought it might be nice, its an 
extension I always add to firefox.

Cheers,

-- 
Lindsay
http://blackpaw.jalbum.net/home
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 5b08e17..f623a90 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -403,6 +403,9 @@ WebView *MainView::newTab(bool focused)
 
     showTabBar();
     addTabButtonPosition();
+    
+    if (ReKonfig::newTabsOpenHomePage())
+      webView->load(QUrl(ReKonfig::homePage()));
 
     return webView;
 }
diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg
index 50fa662..a7db775 100644
--- a/src/rekonq.kcfg
+++ b/src/rekonq.kcfg
@@ -23,6 +23,9 @@
     <entry name="openTabsBack" type="Bool">
         <default>false</default>
     </entry>
+    <entry name="newTabsOpenHomePage" type="Bool">
+        <default>false</default>
+    </entry>
     <entry name="showUrlsPopup" type="Bool">
         <default>true</default>
     </entry>
diff --git a/src/settings_general.ui b/src/settings_general.ui
index 9013675..b686d4f 100644
--- a/src/settings_general.ui
+++ b/src/settings_general.ui
@@ -87,6 +87,13 @@
         </property>
        </widget>
       </item>
+      <item>
+       <widget class="QCheckBox" name="kcfg_newTabsOpenHomePage">
+        <property name="text">
+         <string>New Tabs open Home Page</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to