def show_book_info(self, *args): if self.gui.current_view() is not self.gui.library_view: error_dialog(self.gui, _('No detailed info available'), _('No detailed information is available for books ' 'on the device.')).exec_() return index = self.gui.library_view.currentIndex() if index.isValid(): d = BookInfo(self.gui, self.gui.library_view, index, self.gui.book_details.handle_click) self.memory.append(d) d.closed.connect(self.closed, type=Qt.QueuedConnection) d.show()
def show_book_info(self, *args): if self.gui.current_view() is not self.gui.library_view: error_dialog( self.gui, _('No detailed info available'), _('No detailed information is available for books ' 'on the device.')).exec_() return index = self.gui.library_view.currentIndex() if index.isValid(): BookInfo(self.gui, self.gui.library_view, index, self.gui.book_details.handle_click).show()