Skip to content
Snippets Groups Projects
Commit b8dac4cf authored by Matthias Puchner's avatar Matthias Puchner
Browse files

fix menu exec point

parent 80ece2ba
No related branches found
No related tags found
1 merge request!562Refactor tuning parameters and fit parameters
......@@ -138,7 +138,7 @@ void FitParameterWidget::onFitParameterTreeContextMenu(const QPoint& point)
}
QMenu menu;
menu.addAction(m_removeFitParAction);
menu.exec(m_treeView->mapToGlobal(point + QPoint(2, 22)));
menu.exec(m_treeView->viewport()->mapToGlobal(point));
setActionsEnabled(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment