cfdisk: do not startle the user with a false message when --zero is used

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
Benno Schulenberg 2015-02-08 21:21:28 +01:00 committed by Karel Zak
parent 6067af3f65
commit 5088d642dd
1 changed files with 3 additions and 2 deletions

View File

@ -1774,8 +1774,9 @@ static int ui_create_label(struct cfdisk *cf)
}
erase();
ui_center(ui_lines - 4,
_("Device does not contain a recognized partition table."));
if (!cf->zero_start)
ui_center(ui_lines - 4,
_("Device does not contain a recognized partition table."));
ui_center(ui_lines - 3,
_("Select a type to create a new label or press 'L' to load script file."));