From a63687df2a3df48411b71b44bfbb041f0c83ccfd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 27 Mar 2020 09:26:40 +0530 Subject: [PATCH] Edit book: Allow skipping confirmation dialog when marking non-first file as cover page --- src/calibre/gui2/tweak_book/file_list.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/file_list.py b/src/calibre/gui2/tweak_book/file_list.py index d533947a73..76ddcd20e0 100644 --- a/src/calibre/gui2/tweak_book/file_list.py +++ b/src/calibre/gui2/tweak_book/file_list.py @@ -661,7 +661,10 @@ class FileList(QTreeWidget, OpenWithHandler): move_to_start = question_dialog(self, _('Not first item'), _( '%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 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) def keyPressEvent(self, ev):