diff options
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index d5c552f2..a5eaa748 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -61,6 +61,9 @@ #include <QWidget> #include <QVBoxLayout> +// Defines +#define QL1S(x) QLatin1String(x) + MainView::MainView(MainWindow *parent) : KTabWidget(parent) @@ -300,7 +303,10 @@ void MainView::currentChanged(int index) Application::instance()->mainWindow()->setZoomSliderFactor(tab->view()->zoomFactor()); // set focus to the current webview - tab->view()->setFocus(); + if(tab->url().scheme() == QL1S("about")) + _bars->currentWidget()->setFocus(); + else + tab->view()->setFocus(); } @@ -374,7 +380,7 @@ void MainView::newTab() default: break; } - urlBarWidget()->setFocus(); + _bars->currentWidget()->setFocus(); } |