| 302 | } |
| 303 | |
| 304 | void QPhotorec::select_disk(disk_t *disk) |
| 305 | { |
| 306 | if(disk==NULL) |
| 307 | return ; |
| 308 | selected_disk=disk; |
| 309 | selected_partition=NULL; |
| 310 | autodetect_arch(selected_disk, &arch_none); |
| 311 | log_info("%s\n", selected_disk->description_short(selected_disk)); |
| 312 | part_free_list(list_part); |
| 313 | list_part=init_list_part(selected_disk, NULL); |
| 314 | /* If only whole disk is listed, select it */ |
| 315 | /* If there is the whole disk and only one partition, select the partition */ |
| 316 | if(list_part!=NULL) |
| 317 | { |
| 318 | if(list_part->next==NULL) |
| 319 | selected_partition=list_part->part; |
| 320 | else if(list_part->next->next==NULL) |
| 321 | selected_partition=list_part->next->part; |
| 322 | } |
| 323 | log_all_partitions(selected_disk, list_part); |
| 324 | } |
| 325 | |
| 326 | void QPhotorec::disk_changed(int index) |
| 327 | { |
nothing calls this directly
no test coverage detected