From 6a37d890564b59e682d77d32824b5f7b5fb5acb6 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 --- ChangeLog | 4 ++++ data/gramps.schemas.in | 12 ++++++++++++ src/Config/_GrampsConfigKeys.py | 2 ++ 3 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index e8ad00471..92ee19a5e 100644 --- a/ChangeLog +++ b/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/data/gramps.schemas.in b/data/gramps.schemas.in index d7107c36e..fac559c75 100644 --- a/data/gramps.schemas.in +++ b/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/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index 2de15ce55..637225f8a 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/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,