Ticket #8562: 8562.patch

File 8562.patch, 962 bytes (added by Gesner Passos, 7 years ago)
  • Code/Mantid/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp

    diff --git a/Code/Mantid/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp b/Code/Mantid/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp
    index 2d6daa0..22c635d 100644
    a b QString SANSRunWindow::readUserFileGUIChanges(const States type) 
    20182018    exec_reduce += ", False"; 
    20192019  } 
    20202020  exec_reduce += ")\n"; 
     2021  if ( ( m_uiForm.enableRearFlood_ck->isChecked() && (!m_uiForm.floodRearFile->isValid()) ) || 
     2022       ( m_uiForm.enableFrontFlood_ck->isChecked() && (!m_uiForm.floodFrontFile->isValid()) ) 
     2023       ) 
     2024    { 
     2025      throw std::runtime_error("Invalid flood file. Please, check the path given to the Flood file in Reduction Settings tab.");        
     2026    }   
    20212027  QString floodRearFile = 
    20222028    m_uiForm.enableRearFlood_ck->isChecked() ? m_uiForm.floodRearFile->getFirstFilename().trimmed() : ""; 
    20232029  QString floodFrontFile =