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)

This commit is contained in:
Kovid Goyal 2014-09-11 20:25:42 +05:30
parent 3bcac0109a
commit a88b574c13

View File

@ -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