This commit is contained in:
Kovid Goyal 2023-04-20 07:10:39 +05:30
commit 81fe7d3180
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -143,9 +143,13 @@ class ChooseMultiSort(Dialog):
spec = self.current_sort_spec spec = self.current_sort_spec
if not spec: if not spec:
return self.no_column_selected_error() return self.no_column_selected_error()
name, ok = QInputDialog.getText(self, _('Choose name'), d = QInputDialog(self)
_('Choose a name for these settings')) d.setComboBoxEditable(True)
if ok: d.setComboBoxItems(self.saved_specs.keys())
d.setWindowTitle(_('Choose name'))
d.setLabelText(_('Choose a name for these settings'))
if d.exec():
name = d.textValue()
q = self.saved_specs q = self.saved_specs
q[name] = spec q[name] = spec
self.saved_specs = q self.saved_specs = q