Fossil SCM

Fix a couple of minor issues with settings, as pointed out on the mailing list.

drh 2010-11-04 19:24 UTC trunk
Commit cb2ff51c4badd3e787db14273b0ffc07137f269c
2 files changed +1 -1 +2 -2
+1 -1
--- src/db.c
+++ src/db.c
@@ -1523,11 +1523,11 @@
15231523
{ "gdiff-command", 0, 16, "gdiff" },
15241524
{ "ignore-glob", 0, 40, "" },
15251525
{ "http-port", 0, 16, "8080" },
15261526
{ "localauth", 0, 0, "off" },
15271527
{ "manifest", 0, 0, "off" },
1528
- { "mtime-changes", 0, 0, "off" },
1528
+ { "mtime-changes", 0, 0, "on" },
15291529
{ "pgp-command", 0, 32, "gpg --clearsign -o " },
15301530
{ "proxy", 0, 32, "off" },
15311531
{ "repo-cksum", 0, 0, "on" },
15321532
{ "ssh-command", 0, 32, "" },
15331533
{ "web-browser", 0, 32, "" },
15341534
--- src/db.c
+++ src/db.c
@@ -1523,11 +1523,11 @@
1523 { "gdiff-command", 0, 16, "gdiff" },
1524 { "ignore-glob", 0, 40, "" },
1525 { "http-port", 0, 16, "8080" },
1526 { "localauth", 0, 0, "off" },
1527 { "manifest", 0, 0, "off" },
1528 { "mtime-changes", 0, 0, "off" },
1529 { "pgp-command", 0, 32, "gpg --clearsign -o " },
1530 { "proxy", 0, 32, "off" },
1531 { "repo-cksum", 0, 0, "on" },
1532 { "ssh-command", 0, 32, "" },
1533 { "web-browser", 0, 32, "" },
1534
--- src/db.c
+++ src/db.c
@@ -1523,11 +1523,11 @@
1523 { "gdiff-command", 0, 16, "gdiff" },
1524 { "ignore-glob", 0, 40, "" },
1525 { "http-port", 0, 16, "8080" },
1526 { "localauth", 0, 0, "off" },
1527 { "manifest", 0, 0, "off" },
1528 { "mtime-changes", 0, 0, "on" },
1529 { "pgp-command", 0, 32, "gpg --clearsign -o " },
1530 { "proxy", 0, 32, "off" },
1531 { "repo-cksum", 0, 0, "on" },
1532 { "ssh-command", 0, 32, "" },
1533 { "web-browser", 0, 32, "" },
1534
+2 -2
--- src/setup.c
+++ src/setup.c
@@ -694,11 +694,11 @@
694694
}
695695
if( iVal ){
696696
@ <input type="checkbox" name="%s(zQParm)" checked="checked" />
697697
@ <b>%s(zLabel)</b>
698698
}else{
699
- @ <input type="checkbox" name="%s(zQParm)" /><b>%s(zLabel)</b>
699
+ @ <input type="checkbox" name="%s(zQParm)" /> <b>%s(zLabel)</b>
700700
}
701701
}
702702
703703
/*
704704
** Generate an entry box for an attribute.
@@ -877,11 +877,11 @@
877877
login_insert_csrf_secret();
878878
for(pSet=ctrlSettings; pSet->name!=0; pSet++){
879879
if( pSet->width==0 ){
880880
onoff_attribute(pSet->name, pSet->name,
881881
pSet->var!=0 ? pSet->var : pSet->name,
882
- pSet->def[0]=='1');
882
+ is_truth(pSet->def));
883883
@ <br />
884884
}
885885
}
886886
@ </td><td style="width: 30;"></td><td valign="top">
887887
for(pSet=ctrlSettings; pSet->name!=0; pSet++){
888888
--- src/setup.c
+++ src/setup.c
@@ -694,11 +694,11 @@
694 }
695 if( iVal ){
696 @ <input type="checkbox" name="%s(zQParm)" checked="checked" />
697 @ <b>%s(zLabel)</b>
698 }else{
699 @ <input type="checkbox" name="%s(zQParm)" /><b>%s(zLabel)</b>
700 }
701 }
702
703 /*
704 ** Generate an entry box for an attribute.
@@ -877,11 +877,11 @@
877 login_insert_csrf_secret();
878 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
879 if( pSet->width==0 ){
880 onoff_attribute(pSet->name, pSet->name,
881 pSet->var!=0 ? pSet->var : pSet->name,
882 pSet->def[0]=='1');
883 @ <br />
884 }
885 }
886 @ </td><td style="width: 30;"></td><td valign="top">
887 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
888
--- src/setup.c
+++ src/setup.c
@@ -694,11 +694,11 @@
694 }
695 if( iVal ){
696 @ <input type="checkbox" name="%s(zQParm)" checked="checked" />
697 @ <b>%s(zLabel)</b>
698 }else{
699 @ <input type="checkbox" name="%s(zQParm)" /> <b>%s(zLabel)</b>
700 }
701 }
702
703 /*
704 ** Generate an entry box for an attribute.
@@ -877,11 +877,11 @@
877 login_insert_csrf_secret();
878 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
879 if( pSet->width==0 ){
880 onoff_attribute(pSet->name, pSet->name,
881 pSet->var!=0 ? pSet->var : pSet->name,
882 is_truth(pSet->def));
883 @ <br />
884 }
885 }
886 @ </td><td style="width: 30;"></td><td valign="top">
887 for(pSet=ctrlSettings; pSet->name!=0; pSet++){
888

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button