From fb7154b67ce3133bbab39b63936acd647927f98b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Dec 2019 14:02:44 +0530 Subject: [PATCH] Fix #1857415 [Move clear button inside text field](https://bugs.launchpad.net/calibre/+bug/1857415) --- src/calibre/gui2/convert/debug.py | 4 --- src/calibre/gui2/convert/debug.ui | 44 +++++++++++++------------------ 2 files changed, 18 insertions(+), 30 deletions(-) diff --git a/src/calibre/gui2/convert/debug.py b/src/calibre/gui2/convert/debug.py index b382f567fd..49bd3624bf 100644 --- a/src/calibre/gui2/convert/debug.py +++ b/src/calibre/gui2/convert/debug.py @@ -27,10 +27,6 @@ class DebugWidget(Widget, Ui_Form): self.db, self.book_id = db, book_id self.initialize_options(get_option, get_help, db, book_id) self.button_debug_dir.clicked.connect(self.set_debug_dir) - self.button_clear.clicked.connect(self.clear_debug_dir) - - def clear_debug_dir(self): - self.opt_debug_pipeline.setText('') def set_debug_dir(self): x = choose_dir(self, 'conversion debug dir', _('Choose debug folder')) diff --git a/src/calibre/gui2/convert/debug.ui b/src/calibre/gui2/convert/debug.ui index a6db339844..3e3fb7f638 100644 --- a/src/calibre/gui2/convert/debug.ui +++ b/src/calibre/gui2/convert/debug.ui @@ -14,24 +14,7 @@ Form - - - - Choose a folder to put the debug output into. If you specify a folder, calibre will place a lot of debug output into it. This will be useful in understanding the conversion process and figuring out the correct values for conversion parameters like Table of Contents and Chapter Detection. - - - true - - - - - - - true - - - - + Choose debug folder @@ -40,7 +23,7 @@ ... - + :/images/document_open.png:/images/document_open.png @@ -58,14 +41,13 @@ - - + + - ... + Choose a folder to put the debug output into. If you specify a folder, calibre will place a lot of debug output into it. This will be useful in understanding the conversion process and figuring out the correct values for conversion parameters like Table of Contents and Chapter Detection. - - - :/images/clear_left.png:/images/clear_left.png + + true @@ -79,10 +61,20 @@ + + + + true + + + true + + + - +