diff --git a/qt/scientific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp b/qt/scientific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp index 0ec7e526ca7db2286575727cb1ed3be33baf6839..72fce981d13cc098801461f95314a1f8f7c4d8ba 100644 --- a/qt/scientific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp +++ b/qt/scientific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp @@ -256,8 +256,7 @@ void Decoder::decodeRunsTable(QtRunsTableView *gui, ReductionJobs *redJobs, updateRunsTableViewFromModel(gui, redJobs); if (m_projectSave) { - // Apply styling and restore completed state for output range values best - // way to achieve this is yet to be decided. + // Apply styling and restore completed state for output range values presenter->notifyRowOutputsChanged(); presenter->notifyRowStateChanged(); } @@ -460,4 +459,4 @@ void Decoder::decodeEvent(const QtEventView *gui, } // namespace ISISReflectometry } // namespace CustomInterfaces -} // namespace MantidQt \ No newline at end of file +} // namespace MantidQt diff --git a/qt/widgets/common/inc/MantidQtWidgets/Common/UserSubWindowFactory.h b/qt/widgets/common/inc/MantidQtWidgets/Common/UserSubWindowFactory.h index cbeafcf7df60cf90379b422384f46883128c9af0..544ae97f5139a09299a490376e765dfcbcf68568 100644 --- a/qt/widgets/common/inc/MantidQtWidgets/Common/UserSubWindowFactory.h +++ b/qt/widgets/common/inc/MantidQtWidgets/Common/UserSubWindowFactory.h @@ -87,10 +87,10 @@ private: // QHash doesn't seem to support std::unique_ptr<> as a valueso a std::map is // used instead std::map<std::string, - std::unique_ptr<Mantid::Kernel::AbstractInstantiator<BaseEncoder>>> + std::shared_ptr<Mantid::Kernel::AbstractInstantiator<BaseEncoder>>> m_encoders; std::map<std::string, - std::unique_ptr<Mantid::Kernel::AbstractInstantiator<BaseDecoder>>> + std::shared_ptr<Mantid::Kernel::AbstractInstantiator<BaseDecoder>>> m_decoders; }; @@ -114,11 +114,11 @@ void UserSubWindowFactoryImpl::subscribe(const std::string &decoderTag) { subscribe<WindowType>(); m_encoders.insert( {WindowType::name(), - std::make_unique< + std::make_shared< Mantid::Kernel::Instantiator<EncoderType, BaseEncoder>>()}); m_decoders.insert( {decoderTag, - std::make_unique< + std::make_shared< Mantid::Kernel::Instantiator<DecoderType, BaseDecoder>>()}); }