]> git.deb.at Git - pkg/abook.git/blobdiff - options.c
7 -> phone in rcfile
[pkg/abook.git] / options.c
index a4ab1008311312e32664c6ebe68834ab6786a9b5..ad0671161abf79e7da0f50fa23c3d1eb2b42c6ec 100644 (file)
--- a/options.c
+++ b/options.c
@@ -80,10 +80,18 @@ init_options()
                default_options();
 }
 
+
+#if 1
+extern bool alternative_rcfile;
+#endif
+
 void
 close_config()
 {
-       save_options();
+#if 1
+       if(!alternative_rcfile)
+               save_options();
+#endif
 
        conff_free_nodes(abook_config);
 }
@@ -114,6 +122,7 @@ load_options()
        }
 }
 
+#if 1
 void
 save_options()
 {
@@ -122,6 +131,7 @@ save_options()
 
        conff_save_file(abook_config, rcfile);
 }
+#endif
 
 static void
 options_add_key(char *key, char *value)
@@ -138,7 +148,7 @@ default_options()
 
        options_add_key("show_all_emails", "true");
        options_add_key("emailpos", "25");
-       options_add_key("extra_column", "7");
+       options_add_key("extra_column", "phone");
        options_add_key("extra_alternative", "-1");
        options_add_key("extrapos", "65");