Ignore:
File:
1 edited

Legend:

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

    r955b91 rf10b0c  
    2828
    2929
    30 TextDialog::StringTextQuery::StringTextQuery(std::string title, std::string _description) :
    31     Dialog::StringQuery(title,_description)
     30TextDialog::StringTextQuery::StringTextQuery(Parameter<std::string> &param, std::string title, std::string _description) :
     31    Dialog::StringQuery(param, title,_description)
    3232{}
    3333
     
    3636bool TextDialog::StringTextQuery::handle() {
    3737  std::cout << getDescription() << ": ";
    38   getline(std::cin,tmp);
     38  std::string temp_string;
     39  getline(std::cin,temp_string);
     40  tmp.set(temp_string);
    3941  return true;
    4042}
Note: See TracChangeset for help on using the changeset viewer.