Put the menu_is_visible test back because it avoids printing spurious
authorRob Landley <rob@landley.net>
Thu, 8 Sep 2005 11:50:48 +0000 (11:50 -0000)
committerRob Landley <rob@landley.net>
Thu, 8 Sep 2005 11:50:48 +0000 (11:50 -0000)
(albeit commented out) garbage.

scripts/config/confdata.c

index 78f3b20a78c232a881fe44c0863ed934c173fe3c..327cf9a4f7bbb654969625e57164cb2a10fe198f 100644 (file)
@@ -322,18 +322,18 @@ int conf_write(const char *name)
        while (menu) {
                sym = menu->sym;
                if (!sym) {
-                       //if (!menu_is_visible(menu))
-                       //      goto next;
-                       str = menu_get_prompt(menu);
-                       fprintf(out, "\n"
-                                    "#\n"
-                                    "# %s\n"
-                                    "#\n", str);
-                       if (out_h)
-                               fprintf(out_h, "\n"
-                                              "/*\n"
-                                              " * %s\n"
-                                              " */\n", str);
+                       if (menu_is_visible(menu)) {
+                               str = menu_get_prompt(menu);
+                               fprintf(out, "\n"
+                                            "#\n"
+                                            "# %s\n"
+                                            "#\n", str);
+                               if (out_h)
+                                       fprintf(out_h, "\n"
+                                                      "/*\n"
+                                                      " * %s\n"
+                                                      " */\n", str);
+                       }
                } else if (!(sym->flags & SYMBOL_CHOICE)) {
                        sym_calc_value(sym);
                        //if (!(sym->flags & SYMBOL_WRITE))