This commit is contained in:
Kovid Goyal 2018-01-11 08:51:51 +05:30
parent b52d286cf5
commit bb4a2b6010
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -26,7 +26,6 @@ from calibre.gui2.dialogs.metadata_bulk_ui import Ui_MetadataBulkDialog
from calibre.gui2.dialogs.tag_editor import TagEditor
from calibre.gui2.dialogs.template_line_editor import TemplateLineEditor
from calibre.gui2.metadata.basic_widgets import CalendarWidget
from calibre.gui2.progress_indicator import ProgressIndicator
from calibre.utils.config import JSONConfig, dynamic, prefs, tweaks
from calibre.utils.date import qt_to_dt
from calibre.utils.icu import capitalize, sort_key
@ -67,7 +66,8 @@ class MyBlockingBusy(QDialog): # {{{
self._layout = l = QVBoxLayout()
self.setLayout(l)
# Every Path that will be taken in do_all
options = [ args.cover_action == 'fromfmt' or args.read_file_metadata,
options = [
args.cover_action == 'fromfmt' or args.read_file_metadata,
args.do_swap_ta, args.do_title_case and not
args.do_swap_ta, args.do_title_sort, bool(args.au),
args.do_auto_author, bool(args.aus) and args.do_aus,
@ -79,7 +79,8 @@ class MyBlockingBusy(QDialog): # {{{
is not None, args.do_series, bool(args.series) and
args.do_autonumber, args.comments is not null,
args.do_remove_conv, args.clear_languages, args.remove_all,
bool(do_sr) ]
bool(do_sr)
]
self.selected_options = sum(options)
if DEBUG:
print("Number of steps for bulk metadata: %d" % self.selected_options)
@ -343,7 +344,6 @@ class MyBlockingBusy(QDialog): # {{{
self.progress_update.emit(1)
self.progress_finished_cur_step.emit()
# Various fields
if args.rating != -1:
self.progress_next_step_range.emit(0)