diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-12-22 23:40:10 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-12-22 23:40:10 +0100 |
commit | 11f9e9cbd963f6909c39cc6b8f688b478327ccbd (patch) | |
tree | 973b1b48c557bd3509fd5edce7f917a3b9285fde /src | |
parent | Add BookmarksWidget::showContextMenu signal (diff) | |
download | smolbote-11f9e9cbd963f6909c39cc6b8f688b478327ccbd.tar.xz |
Fix bookmarks context menu exec position
Diffstat (limited to 'src')
-rw-r--r-- | src/browser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index 8c1dcf1..42bbc5d 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -187,7 +187,7 @@ void Browser::setup(QVector<QPluginLoader *> plugins) // bookmarks m_bookmarks = std::make_shared<BookmarksWidget>(QString::fromStdString(m_config->value<std::string>("bookmarks.path").value())); connect(m_bookmarks.get(), &BookmarksWidget::showContextMenu, this, [this](const QUrl &url, const QPoint &pos) { - auto *menu = new QMenu(m_windows.last()); + auto *menu = new QMenu(m_bookmarks.get()); auto *subwindow = m_windows.last()->currentSubWindow(); if(subwindow == nullptr) return; |