| 131 | } |
| 132 | |
| 133 | void ListModel::refresh() |
| 134 | { |
| 135 | if (jobPtr) { |
| 136 | jobPtr->abort(); |
| 137 | searchState = ResetRequested; |
| 138 | return; |
| 139 | } else { |
| 140 | beginResetModel(); |
| 141 | modpacks.clear(); |
| 142 | endResetModel(); |
| 143 | searchState = None; |
| 144 | } |
| 145 | nextSearchOffset = 0; |
| 146 | performPaginatedSearch(); |
| 147 | } |
| 148 | |
| 149 | void ListModel::searchWithTerm(const QString& term, const int sort, const bool filter_changed) |
| 150 | { |