| 91 | } |
| 92 | |
| 93 | void Technic::ListModel::searchWithTerm(const QString& term) |
| 94 | { |
| 95 | if(currentSearchTerm == term && currentSearchTerm.isNull() == term.isNull()) { |
| 96 | return; |
| 97 | } |
| 98 | currentSearchTerm = term; |
| 99 | if(jobPtr) { |
| 100 | jobPtr->abort(); |
| 101 | searchState = ResetRequested; |
| 102 | return; |
| 103 | } |
| 104 | else { |
| 105 | beginResetModel(); |
| 106 | modpacks.clear(); |
| 107 | endResetModel(); |
| 108 | searchState = None; |
| 109 | } |
| 110 | performSearch(); |
| 111 | } |
| 112 | |
| 113 | void Technic::ListModel::performSearch() |
| 114 | { |
no test coverage detected