Diff
Not logged in

Differences From:

File src/setup.c part of check-in [7a39dde24b] - Clean up and merge updates from trunk by robert on 2009-09-26 08:17:33. Also file src/setup.c part of check-in [37f295c310] - Fix a URL on the logo setup page. by drh on 2009-09-21 19:19:20. [view]

To:

File src/setup.c part of check-in [671e7c34e9] - Fix the "Behavior" setup page so that it has the correct default values for unspecified attributes. Ticket 0101a97fefd5ca91d by drh on 2009-10-31 13:50:08. [view]

@@ -635,16 +635,10 @@
   const char *zVar,     /* The corresponding row in the VAR table */
   const char *zQParm,   /* The query parameter */
   int dfltVal           /* Default value if VAR table entry does not exist */
 ){
-  const char *zVal = db_get(zVar, 0);
   const char *zQ = P(zQParm);
-  int iVal;
-  if( zVal ){
-    iVal = atoi(zVal);
-  }else{
-    iVal = dfltVal;
-  }
+  int iVal = db_get_boolean(zVar, dfltVal);
   if( zQ==0 && P("submit") ){
     zQ = "off";
   }
   if( zQ ){
@@ -807,16 +801,16 @@
   login_insert_csrf_secret();
 
   @ <hr>
   onoff_attribute("Automatically synchronize with repository",
-                  "autosync", "autosync", 0);
+                  "autosync", "autosync", 1);
   @ <p>Automatically keeps your work in sync with a centralized server.</p>
 
   @ <hr>
-  onoff_attribute("Sign all commits with gpg",
-                  "clearsign", "clearsign", 0);
+  onoff_attribute("Sign all commits with GPG",
+                  "clearsign", "clearsign", 1);
   @ <p>When enabled (the default), fossil will attempt to
-  @     sign all commits with gpg.  When disabled, commits will
+  @     sign all commits with GPG.  When disabled, commits will
   @    be unsigned.</p>
 
   @ <hr>
   onoff_attribute("Require local authentication",