diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-04-25 10:33:32 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-04-25 10:33:32 +0200 |
commit | 5d6b8c35dd2bec2f6fd4c4181d40344ecf686bc9 (patch) | |
tree | 318316a1c96eab0806b61875f8a62bc84a3a4b2a | |
parent | Finally fix the pinning icons cluttering (diff) | |
download | rekonq-5d6b8c35dd2bec2f6fd4c4181d40344ecf686bc9.tar.xz |
Well... get EXTREMELY sure menubar are registered...
-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; } |