Edit book: Allow skipping confirmation dialog when marking non-first file as cover page

This commit is contained in:
Kovid Goyal 2020-03-27 09:26:40 +05:30
parent eac58bfc9e
commit a63687df2a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -661,7 +661,10 @@ class FileList(QTreeWidget, OpenWithHandler):
move_to_start = question_dialog(self, _('Not first item'), _( move_to_start = question_dialog(self, _('Not first item'), _(
'%s is not the first text item. You should only mark the' '%s is not the first text item. You should only mark the'
' first text item as cover. Do you want to make it the' ' first text item as cover. Do you want to make it the'
' first item?') % elided_text(name)) ' first item?') % elided_text(name),
skip_dialog_name='edit-book-mark-as-titlepage-move-confirm',
skip_dialog_skip_precheck=False
)
self.mark_requested.emit(name, 'titlepage:%r' % move_to_start) self.mark_requested.emit(name, 'titlepage:%r' % move_to_start)
def keyPressEvent(self, ev): def keyPressEvent(self, ev):