From 9f0599d542933d59f81bc4ef638d7f51ae43f1f0 Mon Sep 17 00:00:00 2001 From: mandlebro <fcasal@users.noreply.github.com> Date: Wed, 25 Jul 2018 00:13:16 +0100 Subject: [PATCH] Fix location of breakpoint contextmenu --- src/widgets/BreakpointWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/BreakpointWidget.cpp b/src/widgets/BreakpointWidget.cpp index ade66ba4..c93620af 100644 --- a/src/widgets/BreakpointWidget.cpp +++ b/src/widgets/BreakpointWidget.cpp @@ -176,7 +176,7 @@ void BreakpointWidget::showBreakpointContextMenu(const QPoint &pt) menu->addAction(actionDelBreakpoint); menu->addAction(actionToggleBreakpoint); - menu->exec(ui->breakpointTreeView->mapToGlobal(pt)); + menu->exec(ui->breakpointTreeView->viewport()->mapToGlobal(pt)); this->setContextMenuPolicy(Qt::CustomContextMenu); delete menu;