mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
75584b8caf
@ -158,9 +158,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
return error_dialog(self.gui, _('Grouped search terms'),
|
return error_dialog(self.gui, _('Grouped search terms'),
|
||||||
_('The search term name cannot be blank'),
|
_('The search term name cannot be blank'),
|
||||||
show=True)
|
show=True)
|
||||||
if ' ' in name:
|
if ' ' in name or '.' in name:
|
||||||
return error_dialog(self.gui, _('Invalid grouped search 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:
|
if idx != 0:
|
||||||
orig_name = str(self.gst_names.itemData(idx) or '')
|
orig_name = str(self.gst_names.itemData(idx) or '')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user