From 587d83b0d104161681c5193804332d77f36f0a8a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Oct 2013 21:22:30 +0530 Subject: [PATCH] ... --- src/calibre/gui2/metadata/single_download.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/metadata/single_download.py b/src/calibre/gui2/metadata/single_download.py index c65706a33c..a5974b0fca 100644 --- a/src/calibre/gui2/metadata/single_download.py +++ b/src/calibre/gui2/metadata/single_download.py @@ -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)