From 88673f3d4407ec3fa80ea3d62d8ed8a56a1557f4 Mon Sep 17 00:00:00 2001 From: Arturs Bekasovs Date: Fri, 13 Dec 2013 12:19:28 +0000 Subject: [PATCH] Refs #6473. Creating and passing the algorithm to the dialog. --- .../CustomInterfaces/src/MuonAnalysis.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp b/Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp index b97b6a5b4f91..bea6556b53ba 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp +++ b/Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp @@ -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.