Skip to content
Snippets Groups Projects
Commit 342a7598 authored by Martyn Gigg's avatar Martyn Gigg Committed by GitHub
Browse files

Merge pull request #20860 from mantidproject/revert-20847-20836_Eng_diffraction_slow_start

Revert "Fix for Mantid freezing when handling Engineering Diffraction"
parents 9a839f22 9159b2a8
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,11 @@ Single Crystal Diffraction ...@@ -37,6 +37,11 @@ Single Crystal Diffraction
- :ref:`SCDCalibratePanels <algm-SCDCalibratePanels>` has CalibrateSnapPanels option to calibrate 3X3 banks of SNAP instrument for single crystal data. - :ref:`SCDCalibratePanels <algm-SCDCalibratePanels>` has CalibrateSnapPanels option to calibrate 3X3 banks of SNAP instrument for single crystal data.
- :ref:`LoadIsawDetCal <algm-LoadIsawDetCal>` has not correctly aligned the detectors for SNAP since release 3.9. This bug that only impacted SNAP has been fixed. - :ref:`LoadIsawDetCal <algm-LoadIsawDetCal>` has not correctly aligned the detectors for SNAP since release 3.9. This bug that only impacted SNAP has been fixed.
Engineering Diffraction
-----------------------
- The ISIS engineering diffraction interface has temporarily been disabled due to an issue with file search freezing Mantid when opening the interface.
Imaging Imaging
------- -------
......
...@@ -22,7 +22,8 @@ namespace MantidQt { ...@@ -22,7 +22,8 @@ namespace MantidQt {
namespace CustomInterfaces { namespace CustomInterfaces {
// Add this class to the list of specialised dialogs in this namespace // Add this class to the list of specialised dialogs in this namespace
DECLARE_SUBWINDOW(EnggDiffractionViewQtGUI) // Temporarily disabled to prevent freezing when opening the file dialog.
// DECLARE_SUBWINDOW(EnggDiffractionViewQtGUI)
const double EnggDiffractionViewQtGUI::g_defaultRebinWidth = -0.0005; const double EnggDiffractionViewQtGUI::g_defaultRebinWidth = -0.0005;
...@@ -133,13 +134,13 @@ void EnggDiffractionViewQtGUI::doSetupTabCalib() { ...@@ -133,13 +134,13 @@ void EnggDiffractionViewQtGUI::doSetupTabCalib() {
if (m_uiTabCalib.MWRunFiles_new_vanadium_num->getUserInput() if (m_uiTabCalib.MWRunFiles_new_vanadium_num->getUserInput()
.toString() .toString()
.isEmpty()) { .isEmpty()) {
m_uiTabCalib.MWRunFiles_new_vanadium_num->setFileTextWithoutSearch( m_uiTabCalib.MWRunFiles_new_vanadium_num->setUserInput(
QString::fromStdString(vanadiumRun)); QString::fromStdString(vanadiumRun));
} }
if (m_uiTabCalib.MWRunFiles_new_ceria_num->getUserInput() if (m_uiTabCalib.MWRunFiles_new_ceria_num->getUserInput()
.toString() .toString()
.isEmpty()) { .isEmpty()) {
m_uiTabCalib.MWRunFiles_new_ceria_num->setFileTextWithoutSearch( m_uiTabCalib.MWRunFiles_new_ceria_num->setUserInput(
QString::fromStdString(ceriaRun)); QString::fromStdString(ceriaRun));
} }
......
...@@ -260,9 +260,9 @@ MWRunFiles::MWRunFiles(QWidget *parent) ...@@ -260,9 +260,9 @@ MWRunFiles::MWRunFiles(QWidget *parent)
MWRunFiles::~MWRunFiles() { MWRunFiles::~MWRunFiles() {
// Before destruction, make sure the file finding thread has stopped running. // Before destruction, make sure the file finding thread has stopped running.
// Wait if necessary. This can freeze up Mantid. // Wait if necessary.
m_thread->exit(-1); m_thread->exit(-1);
m_thread->wait(50); m_thread->wait();
} }
/** /**
...@@ -809,6 +809,7 @@ void MWRunFiles::inspectThreadResult() { ...@@ -809,6 +809,7 @@ void MWRunFiles::inspectThreadResult() {
void MWRunFiles::readSettings(const QString &group) { void MWRunFiles::readSettings(const QString &group) {
QSettings settings; QSettings settings;
settings.beginGroup(group); settings.beginGroup(group);
m_lastDir = settings.value("last_directory", "").toString(); m_lastDir = settings.value("last_directory", "").toString();
if (m_lastDir == "") { if (m_lastDir == "") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment