Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp

    r955b91 rf10b0c  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(std::string title, std::string _description) :
    28     Dialog::BooleanQuery(title, _description)
     27CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &param, std::string title, std::string _description) :
     28    Dialog::BooleanQuery(param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::BooleanCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp = CommandLineParser::getInstance().vm[getTitle()].as<bool>();
     35    tmp.set(CommandLineParser::getInstance().vm[getTitle()].as<bool>());
    3636    return true;
    3737  } else {
Note: See TracChangeset for help on using the changeset viewer.