Skip to content

Commit

Permalink
Re #10576. Disable the tie QtProperty. Fix a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Apr 10, 2015
1 parent f689622 commit 9827a08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -62,7 +62,7 @@ LocalParameterEditor::LocalParameterEditor(QWidget *parent, int index, bool fixe
connect(action,SIGNAL(activated()),this,SLOT(fixAll()));
setMenu->addAction(action);

action = new QAction("Unix all",this);
action = new QAction("Unfix all",this);
action->setToolTip("Unfix all parameters.");
connect(action,SIGNAL(activated()),this,SLOT(unfixAll()));
setMenu->addAction(action);
Expand Down
6 changes: 5 additions & 1 deletion Code/Mantid/MantidQt/MantidWidgets/src/FunctionBrowser.cpp
Expand Up @@ -2115,7 +2115,11 @@ void FunctionBrowser::updateLocalTie(const QString& parName)
}
if ( m_localParameterValues[parName][m_currentDataset].fixed )
{
addTieProperty(prop, QString::number(m_localParameterValues[parName][m_currentDataset].value));
auto ap = addTieProperty(prop, QString::number(m_localParameterValues[parName][m_currentDataset].value));
if (ap.prop)
{
ap.prop->setEnabled(false);
}
}
}

Expand Down

0 comments on commit 9827a08

Please sign in to comment.