Skip to content

Commit

Permalink
Refs #6473. Creating and passing the algorithm to the dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Dec 13, 2013
1 parent 57fa128 commit 88673f3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp
Expand Up @@ -3686,9 +3686,25 @@ void MuonAnalysis::setGrouping(ITableWorkspace_sptr detGroupingTable)
*/
void MuonAnalysis::openSequentialFitDialog()
{
Algorithm_sptr loadAlg;

try
{
loadAlg = createLoadAlgorithm();
}
catch(...)
{
QMessageBox::critical(this, "Unable to open dialog", "Error while setting load properties");
return;
}

m_uiForm.fitBrowser->blockSignals(true);

MuonSequentialFitDialog* dialog = new MuonSequentialFitDialog(m_uiForm.fitBrowser, loadAlg);
dialog->exec();

m_uiForm.fitBrowser->blockSignals(false);
}

/**
* Returns custom dead time table file name as set on the interface.
Expand Down

0 comments on commit 88673f3

Please sign in to comment.