Ignore:
File:
1 edited

Legend:

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

    r955b91 rf10b0c  
    2828
    2929
    30 TextDialog::UnsignedIntTextQuery::UnsignedIntTextQuery(std::string title, std::string _description) :
    31     Dialog::UnsignedIntQuery(title,_description)
     30TextDialog::UnsignedIntTextQuery::UnsignedIntTextQuery(Parameter<unsigned int> &param, std::string title, std::string _description) :
     31    Dialog::UnsignedIntQuery(param, title,_description)
    3232{}
    3333
     
    3939    badInput = false;
    4040    std::cout << getDescription() << ": ";
    41     std::cin >> tmp;
     41    unsigned int temp_uint;
     42    std::cin >> temp_uint;
    4243    if(std::cin.fail()){
    4344      badInput=true;
     
    4647      std::cout << "Input was not a number!" << std::endl;
    4748    }
     49    tmp.set(temp_uint);
    4850  } while(badInput);
    4951  // clear the input buffer of anything still in the line
Note: See TracChangeset for help on using the changeset viewer.