Fix location of breakpoint contextmenu

This commit is contained in:
mandlebro 2018-07-25 00:13:16 +01:00 committed by xarkes
parent 2f04984b37
commit 9f0599d542

View File

@ -176,7 +176,7 @@ void BreakpointWidget::showBreakpointContextMenu(const QPoint &pt)
menu->addAction(actionDelBreakpoint); menu->addAction(actionDelBreakpoint);
menu->addAction(actionToggleBreakpoint); menu->addAction(actionToggleBreakpoint);
menu->exec(ui->breakpointTreeView->mapToGlobal(pt)); menu->exec(ui->breakpointTreeView->viewport()->mapToGlobal(pt));
this->setContextMenuPolicy(Qt::CustomContextMenu); this->setContextMenuPolicy(Qt::CustomContextMenu);
delete menu; delete menu;