| 163 | } |
| 164 | |
| 165 | void ModpackListModel::refresh() |
| 166 | { |
| 167 | if (jobPtr) { |
| 168 | jobPtr->abort(); |
| 169 | searchState = ResetRequested; |
| 170 | return; |
| 171 | } else { |
| 172 | beginResetModel(); |
| 173 | modpacks.clear(); |
| 174 | endResetModel(); |
| 175 | searchState = None; |
| 176 | } |
| 177 | nextSearchOffset = 0; |
| 178 | performPaginatedSearch(); |
| 179 | } |
| 180 | |
| 181 | static QString sortFromIndex(int index, bool& unhandled) |
| 182 | { |