| 265 | } |
| 266 | |
| 267 | bool ModFolderModel::deleteMods(const QModelIndexList& indexes) |
| 268 | { |
| 269 | if (indexes.isEmpty()) |
| 270 | return true; |
| 271 | |
| 272 | for (auto i : indexes) { |
| 273 | if (i.column() != 0) { |
| 274 | continue; |
| 275 | } |
| 276 | auto m = at(i.row()); |
| 277 | auto index_dir = indexDir(); |
| 278 | m->destroy(index_dir); |
| 279 | } |
| 280 | |
| 281 | update(); |
| 282 | |
| 283 | return true; |
| 284 | } |
| 285 | |
| 286 | bool ModFolderModel::deleteModsMetadata(const QModelIndexList& indexes) |
| 287 | { |
no test coverage detected