installer: Fix filesystem selection.

When the user selected the OK button, the installation aborted
instead of continuing.
This commit is contained in:
Michael Tremer
2014-08-12 15:16:37 +02:00
parent 282ec35e9b
commit eb3ff46eaa

View File

@@ -523,7 +523,7 @@ int main(int argc, char *argv[]) {
rc = newtWinMenu(_("Filesystem Selection"), _("Please choose your filesystem:"),
50, 5, 5, 6, fs_names, &fs_choice, _("OK"), _("Cancel"), NULL);
if (rc != 1)
if (rc == 2)
goto EXIT;
destination->filesystem = filesystems[fs_choice].fstype;