Skip to content

Commit

Permalink
Re #4158. A fix to the FitDialog.
Browse files Browse the repository at this point in the history
Making sure that if Function property is empty/default no other property is set.
  • Loading branch information
mantid-roman committed May 2, 2012
1 parent 6540307 commit c8ad1b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/MantidQt/CustomDialogs/src/FitDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ void FitDialog::parseInput()
storePropertyValue("Function",funStr);
getAlgorithm()->setPropertyValue("Function",funStr.toStdString());
}
else
{
// Cannot set any other properties until Function is set
return;
}
foreach(QWidget* t, m_tabs)
{
auto iww = dynamic_cast<InputWorkspaceWidget*>(t);
Expand Down

0 comments on commit c8ad1b7

Please sign in to comment.