summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-10 17:34:04 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit08ca2545eede86a0f6de42be596b063de1321ddb (patch)
tree9f1d9986b04d7db3ace13f9304eae704d9c189eb /src/tabwindow
parentFindBar. Rewamped and restored (diff)
downloadrekonq-08ca2545eede86a0f6de42be596b063de1321ddb.tar.xz
Manage Bookmarks Toolbar show/hide (&& create/delete)
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index 765d0774..89ee76b9 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -94,7 +94,8 @@ TabWindow::TabWindow(bool withTab, QWidget *parent)
connect(this, SIGNAL(currentChanged(int)), this, SLOT(currentChanged(int)));
- // NOTE: NEVER create a tabwindow without AT LEAST one tab...
+ // NOTE: we usually create TabWindow with AT LEAST one tab, but
+ // in one important case...
if (withTab)
{
WebWindow *tab = prepareNewTab();
@@ -465,8 +466,6 @@ void TabWindow::detachTab(int index, TabWindow *toWindow)
w->addTab(tab, tab->title());
w->setCurrentWidget(tab);
- w->show();
-
// disconnect signals from old tabwindow
// WARNING: Code copied from prepareNewTab method.
// Any new changes there should be applied here...
@@ -482,6 +481,8 @@ void TabWindow::detachTab(int index, TabWindow *toWindow)
connect(tab, SIGNAL(loadStarted()), w, SLOT(tabLoadStarted()));
connect(tab, SIGNAL(loadFinished(bool)), w, SLOT(tabLoadFinished(bool)));
connect(tab, SIGNAL(pageCreated(WebPage *)), w, SLOT(pageCreated(WebPage *)));
+
+ w->show();
}