]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Go on when OK button is hit in FS selection
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Jul 2014 21:15:25 +0000 (23:15 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Jul 2014 21:15:25 +0000 (23:15 +0200)
Hitting just the enter key proceeded. Navigating to the
OK button and hitting that one aborted the installation.

src/installer/main.c

index 2e0c7dd412dfe45a2a80da43753a160d02810e6b..2a5122e1af1fce764742192818123bf1d13749f7 100644 (file)
@@ -504,11 +504,10 @@ 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 == 0)
-                       destination->filesystem = filesystems[fs_choice].fstype;
-
-               else
+               if (rc != 1)
                        goto EXIT;
+
+               destination->filesystem = filesystems[fs_choice].fstype;
        }
 
        // Setting up RAID if needed.