Ignore:
File:
1 edited

Legend:

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

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