This commit is contained in:
Kovid Goyal 2013-10-20 21:22:30 +05:30
parent 9a9530f34b
commit 587d83b0d1

View File

@ -305,6 +305,8 @@ class ResultsView(QTableView): # {{{
self.show_details_signal.emit(''.join(parts))
def select_index(self, index):
if self.model() is None:
return
if not index.isValid():
index = self.model().index(0, 0)
book = self.model().data(index, Qt.UserRole)