Skip to content

Commit

Permalink
Re #4158. Another fix do FitDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed May 2, 2012
1 parent cc80ef7 commit e5f06f4
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions Code/Mantid/MantidQt/CustomDialogs/src/FitDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ QString InputWorkspaceWidget::getWorkspaceName() const
*/
void InputWorkspaceWidget::setPropertyValue(const QString& propName, const QString& propValue)
{
m_fitDialog->getAlgorithm()->setPropertyValue(propName.toStdString(),propValue.toStdString());
m_fitDialog->storePropertyValue(propName,propValue);
if ( m_fitDialog->getAlgorithm()->existsProperty(propName.toStdString()) )
{
m_fitDialog->getAlgorithm()->setPropertyValue(propName.toStdString(),propValue.toStdString());
m_fitDialog->storePropertyValue(propName,propValue);
}
}

/**
Expand Down Expand Up @@ -253,9 +256,21 @@ void MWPropertiesWidget::setProperties()
endXName += suffix;
}

m_wsWidget->setPropertyValue(wsIndexName,m_workspaceIndex->text());
m_wsWidget->setPropertyValue(startXName,m_startX->text());
m_wsWidget->setPropertyValue(endXName,m_endX->text());
QString value = m_workspaceIndex->text();
if ( !value.isEmpty() )
{
m_wsWidget->setPropertyValue(wsIndexName,value);
}
value = m_startX->text();
if ( !value.isEmpty() )
{
m_wsWidget->setPropertyValue(startXName,value);
}
value = m_endX->text();
if ( !value.isEmpty() )
{
m_wsWidget->setPropertyValue(endXName,value);
}
}

//------------------------------------------------------
Expand Down

0 comments on commit e5f06f4

Please sign in to comment.