Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextUI/Query/MoleculesTextQuery.cpp

    r955b91 rf10b0c  
    3131
    3232
    33 TextDialog::MoleculesTextQuery::MoleculesTextQuery(std::string title, std::string _description) :
    34     Dialog::MoleculesQuery(title,_description)
     33TextDialog::MoleculesTextQuery::MoleculesTextQuery(Parameter<std::vector<const molecule *> > &param, std::string title, std::string _description) :
     34    Dialog::MoleculesQuery(param, title,_description)
    3535{}
    3636
     
    4343  getline(std::cin,line);
    4444  // dissect by " "
     45  std::vector<const molecule *> temp_mols;
    4546  std::string::iterator olditer = line.begin();
    4647  for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) {
     
    5354        break;
    5455      }
    55       tmp.push_back(temp);
     56      temp_mols.push_back(temp);
    5657      olditer = iter;
    5758    }
     
    6364    if(!temp && idxOfMol!=-1){
    6465      std::cout << "Invalid Molecule Index" << idxOfMol << std::endl;
    65       tmp.push_back(temp);
     66      temp_mols.push_back(temp);
    6667    }
    6768  }
     69  tmp.set(temp_mols);
    6870
    6971  return (idxOfMol!=-1);
Note: See TracChangeset for help on using the changeset viewer.