mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 16:34:52 +01:00
Fixed handling of two combo box fields in catalog presets, enable/disable Description-related fields when loading a preset.
This commit is contained in:
parent
fc43f4c0d7
commit
1dfc94eaf2
1 changed files with 6 additions and 3 deletions
|
|
@ -579,6 +579,7 @@ def preset_change(self, item_name):
|
|||
'''
|
||||
Update catalog options from current preset
|
||||
'''
|
||||
print("preset_change: %s" % item_name)
|
||||
if not item_name:
|
||||
return
|
||||
|
||||
|
|
@ -645,6 +646,9 @@ def preset_change(self, item_name):
|
|||
title = options['catalog_title']
|
||||
self.set_format_and_title(format, title)
|
||||
|
||||
# Reset Descriptions-related enable/disable switches
|
||||
self.generate_descriptions_changed(self.generate_descriptions.isChecked())
|
||||
|
||||
def preset_remove(self):
|
||||
if self.preset_field.currentIndex() == 0:
|
||||
return
|
||||
|
|
@ -740,9 +744,8 @@ def preset_save(self):
|
|||
preset['merge_comments_rule'] = "%s:%s:%s" % \
|
||||
(self.merge_source_field_name, checked, include_hr)
|
||||
|
||||
preset['header_note_source_field'] = self.header_note_source_field_name
|
||||
|
||||
preset['genre_source_field'] = self.genre_source_field_name
|
||||
preset['header_note_source_field'] = unicode(self.header_note_source_field.currentText())
|
||||
preset['genre_source_field'] = unicode(self.genre_source_field.currentText())
|
||||
|
||||
# Append the current output profile
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue