mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Require a name when saving a multi-sort.
This commit is contained in:
parent
121bcfba18
commit
a63abab58e
@ -150,9 +150,13 @@ class ChooseMultiSort(Dialog):
|
||||
d.setLabelText(_('Choose a name for these settings'))
|
||||
if d.exec():
|
||||
name = d.textValue()
|
||||
if name:
|
||||
q = self.saved_specs
|
||||
q[name] = spec
|
||||
self.saved_specs = q
|
||||
else:
|
||||
error_dialog(self, _('No name provided'), _(
|
||||
'You must provide a name for the settings'), show=True)
|
||||
|
||||
def populate_load_menu(self):
|
||||
m = self.load_menu
|
||||
|
Loading…
x
Reference in New Issue
Block a user