Ask confirmation when user quits the list of partitions found by TestDisk

This commit is contained in:
Christophe Grenier 2015-07-18 14:08:47 +02:00
parent a73624a3c4
commit b1089a10ec

View file

@ -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;