ui/ncurses: Defer item creation until boot editor is done
[petitboot] / ui / ncurses / nc-menu.c
index 073860bbfc772f0a9b59730111ddd1e382870d0b..b45719d53ae23266a1fac39d8199117f8dc8bc09 100644 (file)
@@ -233,8 +233,8 @@ static void pmenu_process_key(struct nc_scr *scr, int key)
                        item->on_edit(item);
                break;
        case 'n':
-               if (menu->on_open)
-                       menu->on_open(menu);
+               if (menu->on_new)
+                       menu->on_new(menu);
                break;
        case '\n':
        case '\r':