Hello,

i'm using "about:blank" as home page, in this case, home button isn't really 
usefull, this patch disable it when homepage is "about:blank".

-- 
Cédric Bellegarde
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 083bb81..ddc6467 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -665,6 +678,12 @@ void MainWindow::updateActions()
         connect(a, SIGNAL(triggered()), m_view, SLOT(openClosedTab()));
         am->addAction(a);
     }
+
+    QAction *homeAction = actionByName(KStandardAction::name(KStandardAction::Home));
+    if (ReKonfig::homePage() == "about:blank")
+        homeAction->setVisible(false);
+    else
+        homeAction->setVisible(true);
 }
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to