Ignore:
File:
1 edited

Legend:

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

    r955b91 rf10b0c  
    2828
    2929
    30 TextDialog::IntTextQuery::IntTextQuery(std::string title, std::string _description) :
    31     Dialog::IntQuery(title,_description)
     30TextDialog::IntTextQuery::IntTextQuery(Parameter<int> &param, std::string title, std::string _description) :
     31    Dialog::IntQuery(param, title,_description)
    3232{}
    3333
     
    3939    badInput = false;
    4040    std::cout << getDescription() << ": ";
    41     std::cin >> tmp;
     41    int temp_int;
     42    std::cin >> temp_int;
     43    tmp.set(temp_int);
    4244    if(std::cin.fail()){
    4345      badInput=true;
Note: See TracChangeset for help on using the changeset viewer.