Ask confirmation when user quits the list of partitions found by TestDisk
This commit is contained in:
parent
a73624a3c4
commit
b1089a10ec
1 changed files with 4 additions and 1 deletions
|
@ -406,7 +406,10 @@ static list_part_t *ask_structure_ncurses(disk_t *disk_car,list_part_t *list_par
|
|||
case PADENTER:
|
||||
#endif
|
||||
case 'M':
|
||||
return list_part;
|
||||
if(list_part==NULL || ask_confirmation("Return to main menu, confirm ? (Y/N)")!=0)
|
||||
return list_part;
|
||||
rewrite=1;
|
||||
break;
|
||||
default:
|
||||
/* log_trace("ask_structure command=%x\n",command); */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue