From 2c11a95da6772a63d85905d4712a1a2d016a9e1e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 6 Feb 2010 01:49:54 +0100 Subject: FIx focus on browsing (FIRST STEP) and on findbar hiding --- src/mainview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index b26e7466..bc9d0bda 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -308,7 +308,7 @@ void MainView::currentChanged(int index) emit browserTabLoading(false); // set focus to the current webview - tab->setFocus(); + tab->view()->setFocus(); } @@ -507,8 +507,8 @@ void MainView::closeTab(int index) } removeTab(index); - updateTabBar(); // UI operation: do it ASAP!! - tab->deleteLater(); // webView is scheduled for deletion. + updateTabBar(); // UI operation: do it ASAP!! + tab->deleteLater(); // webView is scheduled for deletion. emit tabsChanged(); -- cgit v1.2.1