summaryrefslogtreecommitdiff
path: root/src/rekonqwindow_class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rekonqwindow_class.cpp')
-rw-r--r--src/rekonqwindow_class.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rekonqwindow_class.cpp b/src/rekonqwindow_class.cpp
index c83fd3ae..517742f4 100644
--- a/src/rekonqwindow_class.cpp
+++ b/src/rekonqwindow_class.cpp
@@ -15,6 +15,7 @@
#ifndef REKONQ_TEST
#include "application.hpp"
+#include "bookmarks/bookmarkstreemodel.hpp"
#include "settings/settingsdialog.h"
#include "taskmanager.h"
#include <spdlog/spdlog.h>
@@ -30,9 +31,12 @@ RekonqWindow::RekonqWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Re
#ifndef REKONQ_TEST
ui->bookmarksPanel->setModel(Application::instance()->bookmarks());
+ ui->menuBookmarks->setModel(Application::instance()->bookmarks());
#endif
connect(ui->bookmarksPanel, &BookmarksPanel::loadUrl, this,
qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl));
+ connect(ui->menuBookmarks, &BookmarksMenu::loadUrl, this,
+ qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl));
connect(ui->tabs, &TabBar::currentChanged, this, [this](RekonqView *view) {
if (view == nullptr) { // last tab has been closed