Ignore:
File:
1 edited

Legend:

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

    r955b91 rf10b0c  
    2828
    2929
    30 TextDialog::BooleanTextQuery::BooleanTextQuery(std::string title, std::string _description) :
    31     Dialog::BooleanQuery(title,_description)
     30TextDialog::BooleanTextQuery::BooleanTextQuery(Parameter<bool> &param, std::string title, std::string _description) :
     31    Dialog::BooleanQuery(param, title,_description)
    3232{}
    3333
     
    4242    std::cin >> input;
    4343    if ((input == 'y' ) || (input == 'Y')) {
    44       tmp = true;
     44      tmp.set(true);
    4545    } else if ((input == 'n' ) || (input == 'N')) {
    46       tmp = false;
     46      tmp.set(false);
    4747    } else {
    4848      badInput=true;
Note: See TracChangeset for help on using the changeset viewer.