diff --git a/Scripts/Python/xLinkingBookGUIPopup.py b/Scripts/Python/xLinkingBookGUIPopup.py index 4aa864007b..7d7dcf4018 100644 --- a/Scripts/Python/xLinkingBookGUIPopup.py +++ b/Scripts/Python/xLinkingBookGUIPopup.py @@ -527,9 +527,8 @@ def IShowBookNoTreasure(self): gLinkingBook = ptBook(bookdef,self.key) gLinkingBook.setSize( width, height ) # make sure there is a cover to show - if not showOpen: - if not self.IsThereACover(bookdef): - showOpen = 1 + if showOpen and self.IsThereACover(bookdef): + showOpen = 0 gLinkingBook.setGUI(gui) gLinkingBook.show(showOpen) except LookupError: @@ -864,7 +863,7 @@ def IAddShare(self): def IsThereACover(self,bookHtml): # search the bookhtml string looking for a cover idx = bookHtml.find(' 0: + if idx >= 0: return 1 return 0