summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-19 02:20:18 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-19 02:20:18 +0100
commiteaeb2fd551b212eff656b65169ce98ca20485370 (patch)
tree3f6f553359a5c40a271c93c7a5c79d67767d0336 /src/application.cpp
parentFix settings webkit UI (broken on the krazy fix from (diff)
downloadrekonq-eaeb2fd551b212eff656b65169ce98ca20485370.tar.xz
Set rekonq page (and fix focus) on new window creation.
BUG: 226851
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp7
1 files changed, 7 insertions, 0 deletions
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();
+}