Only validate the partition setup when the user presses "Save". If the user
wants to exit without saving, it's not a problem if the disk is set up in an invalid way.
This commit is contained in:
parent
7b8b6c9c46
commit
3b613c28c5
@ -128,7 +128,7 @@ main(int argc, const char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
error = 0;
|
error = 0;
|
||||||
if (op == 5 && validate_setup()) { /* Finished */
|
if (op == 5) { /* Finished */
|
||||||
dialog_vars.extra_button = TRUE;
|
dialog_vars.extra_button = TRUE;
|
||||||
dialog_vars.extra_label =
|
dialog_vars.extra_label =
|
||||||
__DECONST(char *, "Abort");
|
__DECONST(char *, "Abort");
|
||||||
@ -140,7 +140,7 @@ main(int argc, const char **argv) {
|
|||||||
dialog_vars.extra_button = FALSE;
|
dialog_vars.extra_button = FALSE;
|
||||||
dialog_vars.ok_label = NULL;
|
dialog_vars.ok_label = NULL;
|
||||||
|
|
||||||
if (op == 0) { /* Save */
|
if (op == 0 && validate_setup()) { /* Save */
|
||||||
error = apply_changes(&mesh);
|
error = apply_changes(&mesh);
|
||||||
break;
|
break;
|
||||||
} else if (op == 3) { /* Don't save => Quit */
|
} else if (op == 3) { /* Don't save => Quit */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user