diff --git a/qt/scientific_interfaces/EnggDiffraction/EnggDiffractionViewQtGUI.cpp b/qt/scientific_interfaces/EnggDiffraction/EnggDiffractionViewQtGUI.cpp index 5e40dce20f710c52fcfb8147426b87cb2984e47d..41effdfc5ad5722d44457d37eefa2170c3dc38f5 100644 --- a/qt/scientific_interfaces/EnggDiffraction/EnggDiffractionViewQtGUI.cpp +++ b/qt/scientific_interfaces/EnggDiffraction/EnggDiffractionViewQtGUI.cpp @@ -133,13 +133,13 @@ void EnggDiffractionViewQtGUI::doSetupTabCalib() { if (m_uiTabCalib.MWRunFiles_new_vanadium_num->getUserInput() .toString() .isEmpty()) { - m_uiTabCalib.MWRunFiles_new_vanadium_num->setUserInput( + m_uiTabCalib.MWRunFiles_new_vanadium_num->setFileTextWithoutSearch( QString::fromStdString(vanadiumRun)); } if (m_uiTabCalib.MWRunFiles_new_ceria_num->getUserInput() .toString() .isEmpty()) { - m_uiTabCalib.MWRunFiles_new_ceria_num->setUserInput( + m_uiTabCalib.MWRunFiles_new_ceria_num->setFileTextWithoutSearch( QString::fromStdString(ceriaRun)); } diff --git a/qt/widgets/common/src/MWRunFiles.cpp b/qt/widgets/common/src/MWRunFiles.cpp index 324ba1c02348428e2a7df205954ede577410db6c..4dc9bbc468ea5f4c5fac62f6e166f1a1a5d628be 100644 --- a/qt/widgets/common/src/MWRunFiles.cpp +++ b/qt/widgets/common/src/MWRunFiles.cpp @@ -260,9 +260,9 @@ MWRunFiles::MWRunFiles(QWidget *parent) MWRunFiles::~MWRunFiles() { // Before destruction, make sure the file finding thread has stopped running. - // Wait if necessary. + // Wait if necessary. This can freeze up Mantid. m_thread->exit(-1); - m_thread->wait(); + m_thread->wait(50); } /** @@ -809,7 +809,6 @@ void MWRunFiles::inspectThreadResult() { void MWRunFiles::readSettings(const QString &group) { QSettings settings; settings.beginGroup(group); - m_lastDir = settings.value("last_directory", "").toString(); if (m_lastDir == "") {