Skip to content

Commit

Permalink
make default in data analysis tab those setting. re #9771
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders-Markvardsen committed Jun 30, 2014
1 parent 4d82c2d commit 311fb65
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -2669,9 +2669,6 @@ void MuonAnalysis::changeTab(int newTabIndex)
if (m_uiForm.hideToolbars->isChecked())
emit setToolbarsHidden(true);

m_uiForm.fitBrowser->setStartX(m_uiForm.timeAxisStartAtInput->text().toDouble());
m_uiForm.fitBrowser->setEndX(m_uiForm.timeAxisFinishAtInput->text().toDouble());

if(m_currentTab == m_uiForm.DataAnalysis) // Leaving DA tab
{
// Say MantidPlot to use default fit prop. browser
Expand All @@ -2697,6 +2694,9 @@ void MuonAnalysis::changeTab(int newTabIndex)
// In future, when workspace gets changed, show its plot and attach PP tool to it
connect(m_uiForm.fitBrowser, SIGNAL(workspaceNameChanged(const QString&)),
this, SLOT(selectMultiPeak(const QString&)), Qt::QueuedConnection);

m_uiForm.fitBrowser->setStartX(m_uiForm.timeAxisStartAtInput->text().toDouble());
m_uiForm.fitBrowser->setEndX(m_uiForm.timeAxisFinishAtInput->text().toDouble());
}
else if(newTab == m_uiForm.ResultsTable)
{
Expand Down

0 comments on commit 311fb65

Please sign in to comment.