Fix #6630 (Problem with 'Similar books' options in v7.15) and add CHM to list of supported formats for Spectre

This commit is contained in:
Kovid Goyal 2010-08-27 09:44:38 -06:00
parent 736bd67091
commit e8608b95be
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class SPECTRA(HANLINV3):
gui_name = 'Spectra' gui_name = 'Spectra'
PRODUCT_ID = [0xa4a5] PRODUCT_ID = [0xa4a5]
FORMATS = ['epub', 'mobi', 'fb2', 'lit', 'prc', 'djvu', 'pdf', 'rtf', 'txt'] FORMATS = ['epub', 'mobi', 'fb2', 'lit', 'prc', 'chm', 'djvu', 'pdf', 'rtf', 'txt']
SUPPORTS_SUB_DIRS = True SUPPORTS_SUB_DIRS = True

View File

@ -27,7 +27,7 @@ class SimilarBooksAction(InterfaceAction):
ac = self.create_action(spec=(text, icon, None, shortcut), ac = self.create_action(spec=(text, icon, None, shortcut),
attr=target) attr=target)
m.addAction(ac) m.addAction(ac)
m.triggered.connect(partial(self.show_similar_books, target)) ac.triggered.connect(partial(self.show_similar_books, target))
self.qaction.setMenu(m) self.qaction.setMenu(m)
self.similar_menu = m self.similar_menu = m