From 73721c2a057fc5b346d127dbab826859e796e454 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 9 Feb 2010 10:44:04 +0100 Subject: FIX Delete ASAP the threaded job fix focus navigation while opening new tabs back/fore ground.. --- src/application.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/application.cpp') 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; } -- cgit v1.2.1