Skip to content
Snippets Groups Projects
Commit 4906addb authored by Matthias Puchner's avatar Matthias Puchner Committed by Wuttke, Joachim
Browse files

do not show context menu if FitParameterWidget has no contents

parent d4490d64
No related branches found
No related tags found
1 merge request!565further consequences of big refactoring
......@@ -136,6 +136,9 @@ void FitParameterWidget::onFitParameterTreeContextMenu(const QPoint& point)
setActionsEnabled(false);
return;
}
if (jobItem()->fitParameterContainerItem()->isEmpty())
return;
QMenu menu;
menu.addAction(m_removeFitParAction);
menu.exec(m_treeView->viewport()->mapToGlobal(point));
......
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