summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-09 10:44:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-09 10:44:04 +0100
commit73721c2a057fc5b346d127dbab826859e796e454 (patch)
treed18871db6a0f57a407338190a67bdae4bf14815f /src/application.cpp
parentFix tab preview. (diff)
downloadrekonq-73721c2a057fc5b346d127dbab826859e796e454.tar.xz
FIX
Delete ASAP the threaded job fix focus navigation while opening new tabs back/fore ground..
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 14fd5ce0..6989eee7 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -380,10 +380,12 @@ void Application::loadResolvedUrl(ThreadWeaver::Job *job)
KUrl url = threadedJob->url();
WebView *view = threadedJob->view();
+ // Bye and thanks :)
+ delete threadedJob;
+
if (view)
{
view->load(url);
- view->setFocus();
// we are sure of the url now, let's add it to history
// anyway we store here just http sites because local and ftp ones are
@@ -391,7 +393,4 @@ void Application::loadResolvedUrl(ThreadWeaver::Job *job)
if( url.protocol() == QLatin1String("http") || url.protocol() == QLatin1String("https") )
historyManager()->addHistoryEntry( url.prettyUrl() );
}
-
- // Bye and thanks :)
- delete threadedJob;
}