Append the filter criteria to the filterCriteria queue.
| 305 | |
| 306 | // Append the filter criteria to the filterCriteria queue. |
| 307 | void Global::appendFilter(FilterCriteria *criteria) { |
| 308 | // First, find out if we're already viewing history. If we are we |
| 309 | // chop off the end of the history & start a new one |
| 310 | if (filterPosition+1 < filterCriteria.size()) { |
| 311 | int position = filterPosition; |
| 312 | while (position+1 < filterCriteria.size()) |
| 313 | delete filterCriteria.takeAt(position); |
| 314 | } |
| 315 | |
| 316 | filterCriteria.append(criteria); |
| 317 | } |
| 318 | |
| 319 | |
| 320 |
no test coverage detected