From a88b574c134109e772b367e8b364aa944a40e801 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 Sep 2014 20:25:42 +0530 Subject: [PATCH] Edit metadata dialog: Fix the author sort field not being marked red initially when the author sort does not match the author due to a Qt 5 behavior change. Fixes #1367943 [Author sort fails sometimes in tag browser](https://bugs.launchpad.net/calibre/+bug/1367943) --- src/calibre/gui2/metadata/basic_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/metadata/basic_widgets.py b/src/calibre/gui2/metadata/basic_widgets.py index 3b448638e6..5adbea0446 100644 --- a/src/calibre/gui2/metadata/basic_widgets.py +++ b/src/calibre/gui2/metadata/basic_widgets.py @@ -339,7 +339,7 @@ class AuthorSortEdit(EnLineEdit): 'No action is required if this is what you want.')) self.tooltips = (ok_tooltip, bad_tooltip) - self.authors_edit.editTextChanged.connect(self.update_state_and_val) + self.authors_edit.editTextChanged.connect(self.update_state_and_val, type=Qt.QueuedConnection) self.textChanged.connect(self.update_state) self.autogen_button = autogen_button