Skip to content

Commit

Permalink
Return the old behavior of clearing input.
Browse files Browse the repository at this point in the history
Not clearing turned out to introduce more problems. The old behaviour
is fixed as well, as before it was just setting the text without updating
the file cache.

Refs #6691
  • Loading branch information
arturbekasov committed Sep 23, 2013
1 parent 1d8583f commit eb95782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3810,6 +3810,7 @@ void MuonAnalysis::setToolbarsHidden(bool hidden)
void MuonAnalysis::changeDeadTimeType(int choice)
{
m_deadTimesChanged = true;

if (choice == 0 || choice == 1) // if choice == none || choice == from file
{
m_uiForm.mwRunDeadTimeFile->setVisible(false);
Expand All @@ -3818,6 +3819,7 @@ void MuonAnalysis::changeDeadTimeType(int choice)
else // choice must be from workspace
{
m_uiForm.mwRunDeadTimeFile->setVisible(true);
m_uiForm.mwRunDeadTimeFile->setUserInput("");
}

QSettings group;
Expand All @@ -3833,6 +3835,9 @@ void MuonAnalysis::changeDeadTimeType(int choice)
*/
void MuonAnalysis::deadTimeFileSelected()
{
if(m_uiForm.mwRunDeadTimeFile->getText().isEmpty())
return;

m_deadTimesChanged = true;
homeTabUpdatePlot();
}
Expand Down

0 comments on commit eb95782

Please sign in to comment.