Ignore:
File:
1 edited

Legend:

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

    rd754bb r8df74d  
    2222#include <iostream>
    2323
    24 #include "TextUI/Query/TextQuery.hpp"
     24#include "TextUI/TextDialog.hpp"
    2525
    2626#include "Helpers/Log.hpp"
     
    3939  do{
    4040    badInput = false;
    41     std::cout << getDescription() << "[y/n]: ";
    42     std::cin >> input;
     41    Log() << Verbose(0) << getTitle();
     42    cin >> input;
    4343    if ((input == 'y' ) || (input == 'Y')) {
    4444      tmp = true;
     
    4747    } else {
    4848      badInput=true;
    49       std::cin.clear();
    50       std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    51       std::cout << "Input was not of [yYnN]!" << std::endl;
     49      cin.clear();
     50      cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
     51      Log() << Verbose(0) << "Input was not of [yYnN]!" << endl;
    5252    }
    5353  } while(badInput);
    5454  // clear the input buffer of anything still in the line
    55   std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
     55  cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    5656  return true;
    5757}
Note: See TracChangeset for help on using the changeset viewer.