Skip to content

Commit

Permalink
Re #8911. Removed Cancel button from local values dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Oct 9, 2014
1 parent bdef041 commit ec0a062
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -34,7 +34,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
Expand Down
8 changes: 4 additions & 4 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MultiDatasetFit.cpp
Expand Up @@ -149,6 +149,9 @@ class DatasetPlotData
void show(QwtPlot *plot);
void hide();
private:
// no copying
DatasetPlotData(const DatasetPlotData&);
DatasetPlotData& operator=(const DatasetPlotData&);
void setData(const Mantid::API::MatrixWorkspace *ws, int wsIndex, const Mantid::API::MatrixWorkspace *outputWS);
QwtPlotCurve *m_dataCurve;
QwtPlotCurve *m_calcCurve;
Expand Down Expand Up @@ -738,10 +741,7 @@ int MultiDatasetFit::getNumberOfSpectra() const
void MultiDatasetFit::editLocalParameterValues(const QString& parName)
{
EditLocalParameterDialog dialog(this,parName);
if ( dialog.exec() == QDialog::Accepted )
{
throw std::runtime_error("Edit local parameters.");
}
dialog.exec();
}

/**
Expand Down

0 comments on commit ec0a062

Please sign in to comment.