From eaeb2fd551b212eff656b65169ce98ca20485370 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 19 Feb 2010 02:20:18 +0100 Subject: Set rekonq page (and fix focus) on new window creation. BUG: 226851 --- src/application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index a5b4e759..e5b76745 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -396,3 +396,10 @@ void Application::loadResolvedUrl(ThreadWeaver::Job *job) historyManager()->addHistoryEntry( url.prettyUrl() ); } } + + +void Application::newWindow() +{ + loadUrl( KUrl("about:home"), Rekonq::NewWindow ); + mainWindow()->mainView()->urlBar()->setFocus(); +} -- cgit v1.2.1