From d3eb871cb001e4cebd3f4c7be945ee428413f394 Mon Sep 17 00:00:00 2001 From: Brandon Hewer <brandon.hewer@stfc.ac.uk> Date: Fri, 24 Aug 2018 11:00:49 +0100 Subject: [PATCH] Remove assocaiated parameters when a dataset is removed Refs #23204 --- qt/scientific_interfaces/Indirect/JumpFitModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/scientific_interfaces/Indirect/JumpFitModel.cpp b/qt/scientific_interfaces/Indirect/JumpFitModel.cpp index d55b93d8cd6..be4af632db3 100644 --- a/qt/scientific_interfaces/Indirect/JumpFitModel.cpp +++ b/qt/scientific_interfaces/Indirect/JumpFitModel.cpp @@ -227,6 +227,7 @@ void JumpFitModel::addWorkspace(Mantid::API::MatrixWorkspace_sptr workspace, } void JumpFitModel::removeWorkspace(std::size_t index) { + m_jumpParameters.erase(getWorkspace(index)->getName()); IndirectFittingModel::removeFittingData(index); } -- GitLab