summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp6
1 files changed, 3 insertions, 3 deletions
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();