diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-04 16:15:50 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-04 16:15:50 +0200 |
commit | 3b351d7a17dbfa75dfe8521b9611a98efb34fd6e (patch) | |
tree | 28f8e5b890ac21155263c2e23183e87b40420f02 /src/mainview.cpp | |
parent | fix tab preview when tab has never been focused. (old bug, fixed, reintroduce... (diff) | |
download | rekonq-3b351d7a17dbfa75dfe8521b9611a98efb34fd6e.tar.xz |
Clean MainView API and fix "Pano's bug" about opening new tabs near current ons
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 5b2408da..1f252696 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -318,7 +318,7 @@ WebTab *MainView::webTab(int index) const } -WebTab *MainView::newWebTab(bool focused, bool nearParent) +WebTab *MainView::newWebTab(bool focused) { WebTab* tab = new WebTab(this); UrlBar *bar = new UrlBar(tab); @@ -335,7 +335,7 @@ WebTab *MainView::newWebTab(bool focused, bool nearParent) connect(tab->view()->page(), SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested())); connect(tab->view()->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *))); - if (nearParent) + if ( ReKonfig::openTabsNearCurrent() ) { insertTab(currentIndex() + 1, tab, i18n("(Untitled)")); _widgetBar->insertWidget(currentIndex() + 1, bar); |