mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix drag 'n drop of cover onto conversion dialog not working
This commit is contained in:
parent
4dbf49855a
commit
11ab767266
@ -61,6 +61,11 @@ class MetadataWidget(Widget, Ui_Form):
|
||||
self.initialize_options(get_option, get_help, db, book_id)
|
||||
self.connect(self.cover_button, SIGNAL("clicked()"), self.select_cover)
|
||||
self.comment.hide_toolbars()
|
||||
self.cover.cover_changed.connect(self.change_cover)
|
||||
|
||||
def change_cover(self, data):
|
||||
self.cover_changed = True
|
||||
self.cover_data = data
|
||||
|
||||
def deduce_author_sort(self, *args):
|
||||
au = unicode(self.author.currentText())
|
||||
@ -68,7 +73,6 @@ class MetadataWidget(Widget, Ui_Form):
|
||||
authors = string_to_authors(au)
|
||||
self.author_sort.setText(self.db.author_sort_from_authors(authors))
|
||||
|
||||
|
||||
def initialize_metadata_options(self):
|
||||
self.initialize_combos()
|
||||
self.author.editTextChanged.connect(self.deduce_author_sort)
|
||||
@ -210,7 +214,6 @@ class MetadataWidget(Widget, Ui_Form):
|
||||
bool(self.opt_prefer_metadata_cover.isChecked()),
|
||||
}
|
||||
|
||||
|
||||
def commit(self, save_defaults=False):
|
||||
'''
|
||||
Settings are stored in two attributes: `opf_file` and `cover_file`.
|
||||
@ -242,3 +245,4 @@ class MetadataWidget(Widget, Ui_Form):
|
||||
self.cover_file = cf
|
||||
return recs
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user