summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-23 15:03:00 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-23 15:03:00 +0200
commit955d0c7b47bb6ba661f34a1d1f6ff18d36bfe9b3 (patch)
tree5b18d347d44175fb3d474374339fe0a0f9eb2af1 /src/mainview.cpp
parentFixing a bit new actions text (too long and bad translated) (diff)
downloadrekonq-955d0c7b47bb6ba661f34a1d1f6ff18d36bfe9b3.tar.xz
Fixing rekonq home page urlbar focus issue
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 59ffde4d..655122a2 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -306,9 +306,6 @@ void MainView::newTab()
{
WebView *w = newWebView();
- urlBar()->setUrl(KUrl(""));
- urlBar()->setFocus();
-
HomePage p(w);
switch(ReKonfig::newTabsBehaviour())
@@ -316,12 +313,16 @@ void MainView::newTab()
case 0:
w->setHtml( p.rekonqHomePage() );
break;
+ case 1:
+ urlBar()->setUrl(KUrl(""));
+ break;
case 2:
w->load( QUrl(ReKonfig::homePage()) );
break;
default:
break;
}
+ urlBar()->setFocus();
}
@@ -668,4 +669,4 @@ void MainView::showTabPreview(int tab)
QPoint pos(m_tabBar->tabRect(tab).x(),m_tabBar->tabRect(tab).y()+m_tabBar->tabRect(tab).height());
m_previewPopup->show(mapToGlobal(pos));
-} \ No newline at end of file
+}