mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Prevent Qt from complaining about wildcard disconnect
This commit is contained in:
parent
363d95630b
commit
af8f8e2432
@ -167,14 +167,7 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
|
||||
def break_cycles(self):
|
||||
Widget.break_cycles(self)
|
||||
|
||||
def d(x):
|
||||
try:
|
||||
x.disconnect()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
d(self.sr_search)
|
||||
|
||||
self.sr_search.doc_update.disconnect(self.update_doc)
|
||||
self.sr_search.break_cycles()
|
||||
|
||||
def update_doc(self, doc):
|
||||
|
Loading…
x
Reference in New Issue
Block a user