From 08ca2545eede86a0f6de42be596b063de1321ddb Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 10 Aug 2012 17:34:04 +0200 Subject: Manage Bookmarks Toolbar show/hide (&& create/delete) --- src/tabwindow/tabwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/tabwindow') 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(); } -- cgit v1.2.1