mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix running check book with no book opened gives an error message
This commit is contained in:
parent
408a7b5d4f
commit
512d608a95
@ -795,6 +795,8 @@ class Boss(QObject):
|
|||||||
|
|
||||||
@in_thread_job
|
@in_thread_job
|
||||||
def check_requested(self, *args):
|
def check_requested(self, *args):
|
||||||
|
if current_container() is None:
|
||||||
|
return
|
||||||
self.commit_all_editors_to_container()
|
self.commit_all_editors_to_container()
|
||||||
c = self.gui.check_book
|
c = self.gui.check_book
|
||||||
c.parent().show()
|
c.parent().show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user