mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-25 01:43:50 +01:00
Ignore errors during live refresh of the toc view
This commit is contained in:
parent
50812974e0
commit
99f2fc6879
1 changed files with 6 additions and 1 deletions
|
|
@ -147,7 +147,12 @@ def start_refresh_timer(self, name):
|
|||
|
||||
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…
Reference in a new issue