mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore errors during live refresh of the toc view
This commit is contained in:
parent
50812974e0
commit
99f2fc6879
@ -147,7 +147,12 @@ class TOCViewer(QWidget):
|
||||
|
||||
def auto_refresh(self):
|
||||
if self.isVisible():
|
||||
self.refresh()
|
||||
try:
|
||||
self.refresh()
|
||||
except Exception:
|
||||
# ignore errors during live refresh of the toc
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def refresh(self):
|
||||
self.refresh_requested.emit() # Give boss a chance to commit dirty editors to the container
|
||||
|
Loading…
x
Reference in New Issue
Block a user