diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-19 02:20:18 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-19 02:20:18 +0100 |
commit | eaeb2fd551b212eff656b65169ce98ca20485370 (patch) | |
tree | 3f6f553359a5c40a271c93c7a5c79d67767d0336 /src/application.cpp | |
parent | Fix settings webkit UI (broken on the krazy fix from (diff) | |
download | rekonq-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.cpp | 7 |
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(); +} |