Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.cpp

    r0d4168 r163110  
    5050using namespace std;
    5151
    52 Dialog::Dialog()
     52Dialog::Dialog(const std::string &_title)
    5353{
    5454}
     
    120120
    121121bool Dialog::hasQueries(){
    122   return queries.size();
     122  list<Query*>::iterator iter;
     123  size_t nonemptyQueries = 0;
     124  for(iter=queries.begin(); iter!=queries.end(); iter++) {
     125    // count all queries that not EmptyQuery
     126    if (dynamic_cast<Dialog::EmptyQuery *>(*iter) == NULL)
     127      ++nonemptyQueries;
     128  }
     129  return nonemptyQueries != 0;
    123130}
    124131
Note: See TracChangeset for help on using the changeset viewer.