summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-10 19:20:15 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-10 19:20:15 +0200
commitdb4dbacd0b073fe561bf9f4da9b093f4be907afc (patch)
treeb1eb5744f1a1023828357eded19b6e750ab7b69a /src/mainview.cpp
parentnew tab has to have focusgit st (diff)
downloadrekonq-db4dbacd0b073fe561bf9f4da9b093f4be907afc.tar.xz
Fixed some wrong changes
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index eb2ae732..65400ace 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -373,9 +373,9 @@ WebView *MainView::newWebView()
p.setColor(QPalette::Window, palette().color(QPalette::Base));
emptyWidget->setPalette(p);
emptyWidget->setAutoFillBackground(true);
- disconnect(this, SIGNAL(currentChanged(int)), this, SLOT(currentChanged(int)));
+ disconnect(this, SIGNAL(currentChanged(int)), this, SLOT(slotCurrentChanged(int)));
addTab(emptyWidget, i18n("(Untitled)"));
- connect(this, SIGNAL(currentChanged(int)), this, SLOT(currentChanged(int)));
+ connect(this, SIGNAL(currentChanged(int)), this, SLOT(slotCurrentChanged(int)));
return 0;
}
@@ -401,12 +401,15 @@ WebView *MainView::newWebView()
addTab(webView, i18n("(Untitled)"));
setCurrentWidget(webView);
- // FIXME: focus on currentLineEdit just for empty pages
- currentLineEdit()->setFocus(Qt::ActiveWindowFocusReason);
+ // focus on currentLineEdit just for empty pages
+ if(webView->url().isEmpty())
+ {
+ currentLineEdit()->setFocus(Qt::ActiveWindowFocusReason);
+ }
if (count() == 1)
{
- currentChanged(currentIndex());
+ slotCurrentChanged(currentIndex());
}
emit tabsChanged();