On Sun, 23 Aug 2009 05:51:33 pm Andrea Diamantini wrote:
> On Sunday 23 August 2009 02:15:58 Lindsay Mathieson wrote:
> > Now that 0.2 is out, is the new config option and behaviour patch I
> > created acceptable? (Open a new Tab opened the home page, rather than
> > blank)
>
> Sure!


Thanks! Attached (is that the right submission method for patches?)


-- 
Lindsay
http://blackpaw.jalbum.net/home
diff --git a/src/mainview.cpp b/src/mainview.cpp
index efabf0f..c806ac0 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -413,6 +413,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 ec2b9a3..d9ccd3e 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 d40dff9..adf26c5 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