Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 14, 2014
1 parent ff5c6cd commit ca52341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/calibre/gui2/actions/edit_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def get_metadata(book_id):
db.data.set_marked_ids(failed_ids)

self.apply_metadata_changes(
id_map, merge_comments=msprefs['append_comments'],
id_map, merge_comments=msprefs['append_comments'], icon='download-metadata.png',
callback=partial(self.downloaded_metadata_applied, tdir, restrict_to_failed))

def downloaded_metadata_applied(self, tdir, restrict_to_failed, *args):
Expand Down Expand Up @@ -620,7 +620,7 @@ def edit_device_collections(self, view, oncard=None):

# Apply bulk metadata changes {{{
def apply_metadata_changes(self, id_map, title=None, msg='', callback=None,
merge_tags=True, merge_comments=False):
merge_tags=True, merge_comments=False, icon=None):
'''
Apply the metadata changes in id_map to the database synchronously
id_map must be a mapping of ids to Metadata objects. Set any fields you
Expand Down Expand Up @@ -649,7 +649,7 @@ def apply_metadata_changes(self, id_map, title=None, msg='', callback=None,
from calibre.gui2.dialogs.progress import ProgressDialog
self.apply_pd = ProgressDialog(title, msg, min=0,
max=len(self.apply_id_map)-1, parent=self.gui,
cancelable=False)
cancelable=False, icon=icon)
self.apply_pd.setModal(True)
self.apply_pd.show()
self._am_merge_tags = merge_tags
Expand Down

0 comments on commit ca52341

Please sign in to comment.