Skip to content

Commit

Permalink
Fixed logic to keep diffraction out of analysers list
Browse files Browse the repository at this point in the history
Refs #10003
  • Loading branch information
DanNixon committed Aug 21, 2014
1 parent 3cf295c commit 9a61414
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -539,16 +539,13 @@ namespace CustomInterfaces

for (int i = 0; i< analysers.count(); i++ )
{
QString text; // holds Text field of combo box (name of analyser)
QStringList analyser = analysers[i].split("-", QString::SkipEmptyParts);
QString text = analyser[0];

if ( text != "diffraction" ) // do not put diffraction into the analyser list
{
QVariant data; // holds Data field of combo box (list of reflections)

QStringList analyser = analysers[i].split("-", QString::SkipEmptyParts);

text = analyser[0];

if ( analyser.count() > 1 )
{
QStringList reflections = analyser[1].split(",", QString::SkipEmptyParts);
Expand Down

0 comments on commit 9a61414

Please sign in to comment.