summaryrefslogtreecommitdiffstats
path: root/src/intrface.c
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2015-07-18 14:08:47 +0200
committerChristophe Grenier <[email protected]>2015-07-18 14:08:47 +0200
commitb1089a10ec65e1983e7c5e3ec6a70813521cdb5a (patch)
tree13327b0e50845d35067fff2caf130a559fc2ab7e /src/intrface.c
parenta73624a3c4fda928b9377bb31df3b8df95515a39 (diff)
Ask confirmation when user quits the list of partitions found by TestDisk
Diffstat (limited to 'src/intrface.c')
-rw-r--r--src/intrface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intrface.c b/src/intrface.c
index 25ca3a8e..fe6a841d 100644
--- a/src/intrface.c
+++ b/src/intrface.c
@@ -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;