Skip to content

Commit

Permalink
Save the file even if it doesn't apply to the current data set.
Browse files Browse the repository at this point in the history
Refs #6691
  • Loading branch information
arturbekasov committed Sep 23, 2013
1 parent eb95782 commit 510fc73
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,6 @@ void MuonAnalysis::inputFileChanged(const QStringList& files)
QString deadTimeFile(m_uiForm.mwRunDeadTimeFile->getFirstFilename() );

getDeadTimeFromFile(deadTimeFile);

// Remember the filename for the next time interface is opened
QSettings group;
group.beginGroup(m_settingsGroup + "DeadTimeOptions");
group.setValue("deadTimeFile", deadTimeFile);
}
}
catch(std::exception& e)
Expand Down Expand Up @@ -3835,9 +3830,14 @@ void MuonAnalysis::changeDeadTimeType(int choice)
*/
void MuonAnalysis::deadTimeFileSelected()
{
if(m_uiForm.mwRunDeadTimeFile->getText().isEmpty())
if(!m_uiForm.mwRunDeadTimeFile->isValid())
return;

// Remember the filename for the next time interface is opened
QSettings group;
group.beginGroup(m_settingsGroup + "DeadTimeOptions");
group.setValue("deadTimeFile", m_uiForm.mwRunDeadTimeFile->getText());

m_deadTimesChanged = true;
homeTabUpdatePlot();
}
Expand Down

0 comments on commit 510fc73

Please sign in to comment.