Changes in src/UIElements/Dialog.cpp [0d4168:163110]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.cpp
r0d4168 r163110 50 50 using namespace std; 51 51 52 Dialog::Dialog( )52 Dialog::Dialog(const std::string &_title) 53 53 { 54 54 } … … 120 120 121 121 bool 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; 123 130 } 124 131
Note:
See TracChangeset
for help on using the changeset viewer.