mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -579,6 +579,7 @@ class PluginWidget(QWidget,Ui_Form):
|
||||
'''
|
||||
Update catalog options from current preset
|
||||
'''
|
||||
print("preset_change: %s" % item_name)
|
||||
if not item_name:
|
||||
return
|
||||
|
||||
@ -645,6 +646,9 @@ class PluginWidget(QWidget,Ui_Form):
|
||||
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 @@ class PluginWidget(QWidget,Ui_Form):
|
||||
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…
x
Reference in New Issue
Block a user