]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
installer: Fix filesystem selection.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Aug 2014 13:16:37 +0000 (15:16 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Aug 2014 13:16:37 +0000 (15:16 +0200)
When the user selected the OK button, the installation aborted
instead of continuing.

src/installer/main.c

index ad4e0c54b21997a57ecabee59cb9850a2830b6d9..77c1d67d73021c493863796b23951a4e376fc65c 100644 (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;