Where to hack a bypass of the unknown Gender nag dialog?

A poster on the Element Gramps forum is aggravated by the Nag dialog when committing changes in the Edit Person dialog.

He figures he could patch the code but would be re-patching with every update.

What’s the correct method for adding a new “Suppress warning on Unknown gender” option to the Warnings tab of Preferences and tying it to the GenderDialog ?

And where the dialog is called

He also found the code where the Preferences Warnings tab is set. But is still looking for where the default values are set. (And not sure where a new option should be stored. The existing values are stored between: interface, preferences, and 2 in behavior

1 Like

Note that any tweaking of the Gender Guessing should also consider the Unhandled Exception possible during Gender Guessing

‘Suppress Warning’ options are universal. Would this be universal or would it be by person? Once you acknowledge the gender is Unknown for the person any additional Save function would ignore the Unknown gender.

Personally, I do not mind the nag.

When I do not know much (if anything) about the child beyond knowing they existed, I use [unknown] as the given name. Having that put under the Gender guessing as ‘Unknown’ would be good. Although often I do know that '[unknown] Smith' is in fact male or female. The same goes for [unnamed] for many infant deaths.

Yes it would be a universal option…

A similar nag dialog currently suppressible in the Warnings tab is the following:

So if it annoys a user repeatedly during data entry, they can click the checkbox without leaving their workflow. Later, they can restore the default behavior from the Warning tab of Preferences.