mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-10-25 15:52:25 -04:00
...
This commit is contained in:
parent
c76df62e2b
commit
2ee049d9aa
@ -4,6 +4,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import json
|
import json
|
||||||
|
from contextlib import suppress
|
||||||
|
|
||||||
from qt.core import Qt, QTableWidgetItem
|
from qt.core import Qt, QTableWidgetItem
|
||||||
|
|
||||||
@ -167,7 +168,8 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
|
|||||||
def break_cycles(self):
|
def break_cycles(self):
|
||||||
Widget.break_cycles(self)
|
Widget.break_cycles(self)
|
||||||
|
|
||||||
self.sr_search.doc_update.disconnect(self.update_doc)
|
with suppress(TypeError):
|
||||||
|
self.sr_search.doc_update.disconnect(self.update_doc)
|
||||||
self.sr_search.break_cycles()
|
self.sr_search.break_cycles()
|
||||||
|
|
||||||
def update_doc(self, doc):
|
def update_doc(self, doc):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user