summaryrefslogtreecommitdiff
path: root/src/tabwindow/rekonqwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow/rekonqwindow.cpp')
-rw-r--r--src/tabwindow/rekonqwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tabwindow/rekonqwindow.cpp b/src/tabwindow/rekonqwindow.cpp
index e67e21c8..c0785b67 100644
--- a/src/tabwindow/rekonqwindow.cpp
+++ b/src/tabwindow/rekonqwindow.cpp
@@ -36,6 +36,7 @@
#include "tabwidget.h"
#include "tabbar.h"
+#include "rekonqfactory.h"
#include "webpage.h"
#include "webwindow.h"
@@ -47,6 +48,7 @@
// Qt Includes
#include <QVBoxLayout>
#include <QSizePolicy>
+#include <QDBusConnection>
RekonqWindow::RekonqWindow(bool withTab, bool privateBrowsingMode, QWidget *parent)
@@ -97,6 +99,10 @@ void RekonqWindow::init()
// signals
connect(_tabWidget, SIGNAL(closeWindow()), this, SLOT(close()));
connect(_tabWidget, SIGNAL(windowTitleChanged(QString)), this, SLOT(setWindowTitle(QString)));
+
+ // This is needed to properly support appmenu-qt feature
+ RekonqFactory::createWidget(QL1S("menuBar"), this);
+ QDBusConnection::sessionBus().registerObject(QL1S("rekonq"), this);
}
// --------------------------------------------------------------------------------------------------