diff --git a/src/calibre/gui2/tweak_book/editor/syntax/base.py b/src/calibre/gui2/tweak_book/editor/syntax/base.py index 60c544083a..da01e1db20 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/base.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/base.py @@ -66,5 +66,6 @@ class SyntaxHighlighter(QSyntaxHighlighter): import traceback traceback.print_exc() finally: - QApplication.processEvents() # Try to keep the editor responsive to user input + # Disabled as it causes crashes + pass # QApplication.processEvents() # Try to keep the editor responsive to user input