From: Michael Tremer Date: Wed, 30 Jul 2014 21:15:25 +0000 (+0200) Subject: installer: Go on when OK button is hit in FS selection X-Git-Tag: v2.17-core87~103^2~51^2~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=139cb500118a70b5dd3e24e6ffaa32efeabb34eb;p=ipfire-2.x.git installer: Go on when OK button is hit in FS selection Hitting just the enter key proceeded. Navigating to the OK button and hitting that one aborted the installation. --- diff --git a/src/installer/main.c b/src/installer/main.c index 2e0c7dd412..2a5122e1af 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -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.