diff options
-rw-r--r-- | src/tabwindow/rekonqwindow.cpp | 1 | ||||
-rw-r--r-- | src/tabwindow/tabwidget.cpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/tabwindow/rekonqwindow.cpp b/src/tabwindow/rekonqwindow.cpp index 31af5387..773ded3f 100644 --- a/src/tabwindow/rekonqwindow.cpp +++ b/src/tabwindow/rekonqwindow.cpp @@ -99,7 +99,6 @@ void RekonqWindow::init() // signals connect(_tabWidget, SIGNAL(closeWindow()), this, SLOT(close())); connect(_tabWidget, SIGNAL(windowTitleChanged(QString)), this, SLOT(setWindowTitle(QString))); - connect(_tabWidget, SIGNAL(actionsReady()), this, SLOT(registerWindow())); } diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp index 7e9f7328..12341759 100644 --- a/src/tabwindow/tabwidget.cpp +++ b/src/tabwindow/tabwidget.cpp @@ -192,6 +192,9 @@ void TabWidget::init() // ---------------------------------------------------------------------------------------------- RekonqWindow *rw = qobject_cast<RekonqWindow *>(parent()); + + connect(this, SIGNAL(actionsReady()), rw, SLOT(registerWindow())); + // setup bookmarks panel action a = new KAction(KIcon("bookmarks-organize"), i18n("Bookmarks Panel"), this); a->setShortcut(KShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_B)); @@ -336,7 +339,7 @@ WebWindow *TabWidget::prepareNewTab(WebPage *page) if (count() == 0) emit actionsReady(); - + return tab; } |