Add a check for periods in grouped search names

This commit is contained in:
Charles Haley 2023-04-11 12:49:30 +01:00
parent 94eee05a2e
commit 444f8e9eda

View File

@ -158,9 +158,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
return error_dialog(self.gui, _('Grouped search terms'),
_('The search term name cannot be blank'),
show=True)
if ' ' in name:
if ' ' in name or '.' in name:
return error_dialog(self.gui, _('Invalid grouped search name'),
_('The grouped search term name cannot contain spaces'), show=True)
_('The grouped search term name cannot contain spaces or periods'), show=True)
if idx != 0:
orig_name = str(self.gst_names.itemData(idx) or '')
else: