diff options
author | Christophe Grenier <[email protected]> | 2009-08-27 08:47:16 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2009-08-27 08:47:16 +0200 |
commit | 767a8228357428a40c98f6564eeecd60d51080f2 (patch) | |
tree | c9c0c9d424e006f7856310c2919d2d863a76c7ef /src/intrface.c | |
parent | 5befc932bfcbe6ba631942b8f915e1cb75fbcc2d (diff) |
TestDisk: don't display "Structure: Ok" if there is no partition. Users are confused otherwise.
Diffstat (limited to 'src/intrface.c')
-rw-r--r-- | src/intrface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intrface.c b/src/intrface.c index 964f30d3..a41f3bcd 100644 --- a/src/intrface.c +++ b/src/intrface.c @@ -154,7 +154,10 @@ static list_part_t *ask_structure_ncurses(disk_t *disk_car,list_part_t *list_par } } if(structure_status==0) - mvwaddstr(stdscr,LINES-6,0,msg_STRUCT_OK); + { + if(list_part!=NULL) + mvwaddstr(stdscr,LINES-6,0,msg_STRUCT_OK); + } else { if(has_colors()) |