Ignore:
File:
1 edited

Legend:

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

    rd754bb r8df74d  
    2222#include <iostream>
    2323
    24 #include "TextUI/Query/TextQuery.hpp"
     24#include "TextUI/TextDialog.hpp"
    2525
    2626#include "Helpers/Log.hpp"
     
    3838  do{
    3939    badInput = false;
    40     std::cout << getDescription() << ": ";
    41     std::cin >> tmp;
    42     if(std::cin.fail()){
     40    Log() << Verbose(0) << getTitle();
     41    cin >> tmp;
     42    if(cin.fail()){
    4343      badInput = true;
    44       std::cin.clear();
    45       std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    46       std::cout << "Input was not a number!" << std::endl;
     44      cin.clear();
     45      cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
     46      Log() << Verbose(0) << "Input was not a number!" << endl;
    4747    }
    4848  }while(badInput);
    49   std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
     49  cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    5050  return true;
    5151}
Note: See TracChangeset for help on using the changeset viewer.