aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-12-22 23:40:10 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-12-22 23:40:10 +0100
commit11f9e9cbd963f6909c39cc6b8f688b478327ccbd (patch)
tree973b1b48c557bd3509fd5edce7f917a3b9285fde /lib/bookmarks
parentAdd BookmarksWidget::showContextMenu signal (diff)
downloadsmolbote-11f9e9cbd963f6909c39cc6b8f688b478327ccbd.tar.xz
Fix bookmarks context menu exec position
Diffstat (limited to 'lib/bookmarks')
-rw-r--r--lib/bookmarks/bookmarkswidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bookmarks/bookmarkswidget.cpp b/lib/bookmarks/bookmarkswidget.cpp
index c57af57..9bb29f8 100644
--- a/lib/bookmarks/bookmarkswidget.cpp
+++ b/lib/bookmarks/bookmarkswidget.cpp
@@ -78,9 +78,9 @@ BookmarksWidget::BookmarksWidget(const QString &path, QWidget *parent)
const QModelIndex idx = ui->treeView->indexAt(pos);
if(idx.isValid()) {
const QUrl url = model->data(idx, 1, Qt::DisplayRole).toUrl();
- const QPoint pos = ui->treeView->viewport()->mapToGlobal(pos);
+ const QPoint _pos = ui->treeView->viewport()->mapToGlobal(pos);
- emit showContextMenu(url, pos);
+ emit showContextMenu(url, _pos);
}
});