From 34b9d39076aa9a3ce16088dfc56546af65efb199 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 2 May 2006 19:13:05 +0000 Subject: [PATCH] 2006-05-02 Don Allingham * src/Config/_GrampsConfigKeys.py: add family-warn back in * data/gramps.schemas.in: add family-warn back in svn: r6520 --- gramps2/ChangeLog | 4 ++++ gramps2/data/gramps.schemas.in | 12 ++++++++++++ gramps2/src/Config/_GrampsConfigKeys.py | 2 ++ 3 files changed, 18 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e8ad00471..92ee19a5e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-05-02 Don Allingham + * src/Config/_GrampsConfigKeys.py: add family-warn back in + * data/gramps.schemas.in: add family-warn back in + 2006-05-02 Alex Roitman * src/RelLib/_BaseObject.py (PrivacyBase): Remove class, as it already has its own module. diff --git a/gramps2/data/gramps.schemas.in b/gramps2/data/gramps.schemas.in index d7107c36e..fac559c75 100644 --- a/gramps2/data/gramps.schemas.in +++ b/gramps2/data/gramps.schemas.in @@ -15,6 +15,18 @@ + + /schemas/apps/gramps/preferences/family-warn + /apps/gramps/preferences/family-warn + gramps + bool + 1 + + Warn when adding parents in a way that may cause duplicate families. + If set to True, a warning dialog will be displayed whenever the user is a risk of creating a duplicate family when adding parents to a person. + + + /schemas/apps/gramps/preferences/last-view /apps/gramps/preferences/last-view diff --git a/gramps2/src/Config/_GrampsConfigKeys.py b/gramps2/src/Config/_GrampsConfigKeys.py index 2de15ce55..637225f8a 100644 --- a/gramps2/src/Config/_GrampsConfigKeys.py +++ b/gramps2/src/Config/_GrampsConfigKeys.py @@ -1,4 +1,5 @@ FAMILY_DETAILS = ('preferences','family-details', 0) +FAMILY_WARN = ('preferences','family-warn', 0) LAST_VIEW = ('preferences','last-view', 1) FAMILY_SIBLINGS = ('preferences','family-siblings', 0) AUTOLOAD = ('behavior','autoload', 0) @@ -47,6 +48,7 @@ WEBSITE_DIRECTORY = ('paths','website-directory', 2) default_value = { FAMILY_DETAILS : True, + FAMILY_WARN : True, LAST_VIEW : 0, FAMILY_SIBLINGS : True, AUTOLOAD : False,