Skip to content

Commit

Permalink
Add Sqw to other Bayes tabs
Browse files Browse the repository at this point in the history
Restruct to RES where needed

Refs #10454
  • Loading branch information
DanNixon committed Nov 21, 2014
1 parent 61ea633 commit 2a3d96d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Expand Up @@ -43,11 +43,13 @@
<property name="workspaceSuffixes" stdset="0">
<stringlist>
<string>_res</string>
<string>_sqw</string>
</stringlist>
</property>
<property name="fileBrowserSuffixes" stdset="0">
<stringlist>
<string>_res.nxs</string>
<string>_sqw.nxs</string>
</stringlist>
</property>
<property name="showLoad">
Expand Down Expand Up @@ -79,11 +81,13 @@
<property name="workspaceSuffixes" stdset="0">
<stringlist>
<string>_red</string>
<string>_sqw</string>
</stringlist>
</property>
<property name="fileBrowserSuffixes" stdset="0">
<stringlist>
<string>*_red.nxs</string>
<string>_red.nxs</string>
<string>_sqw.nxs</string>
</stringlist>
</property>
</widget>
Expand Down
Expand Up @@ -37,11 +37,13 @@
<property name="workspaceSuffixes" stdset="0">
<stringlist>
<string>_red</string>
<string>_sqw</string>
</stringlist>
</property>
<property name="fileBrowserSuffixes" stdset="0">
<stringlist>
<string>_red.nxs</string>
<string>_sqw.nxs</string>
</stringlist>
</property>
</widget>
Expand Down
11 changes: 11 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Quasi.cpp
Expand Up @@ -92,6 +92,17 @@ namespace MantidQt
return false;
}

QString program = m_uiForm.cbProgram->currentText();
if(program == "Stretched Exponential")
{
QString resName = m_uiForm.dsResolution->getCurrentDataName();
if(!resName.endsWith("_res"))
{
emit showMessageBox("Stretched Exponential program can only be used with a resolution file.");
return false;
}
}

return true;
}

Expand Down

0 comments on commit 2a3d96d

Please sign in to comment.