From db54affc7403e6670c83afbe357ed3eb0ca72a5f Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Tue, 2 Apr 2013 19:57:50 +0000 Subject: [PATCH] Handle None cover_date git-svn-id: http://comictagger.googlecode.com/svn/trunk@568 6c5673fe-1810-88d6-992b-cd32ca31540c --- comictaggerlib/autotagmatchwindow.py | 4 +++- comictaggerlib/matchselectionwindow.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/comictaggerlib/autotagmatchwindow.py b/comictaggerlib/autotagmatchwindow.py index 55c263e..bfc2e94 100644 --- a/comictaggerlib/autotagmatchwindow.py +++ b/comictaggerlib/autotagmatchwindow.py @@ -132,7 +132,9 @@ class AutoTagMatchWindow(QtGui.QDialog): item.setFlags(QtCore.Qt.ItemIsSelectable| QtCore.Qt.ItemIsEnabled) self.twList.setItem(row, 2, item) - item_text = match['issue_title'] + item_text = match['issue_title'] + if item_text is None: + item_text = "" item = QtGui.QTableWidgetItem(item_text) item.setData( QtCore.Qt.ToolTipRole, item_text ) item.setFlags(QtCore.Qt.ItemIsSelectable| QtCore.Qt.ItemIsEnabled) diff --git a/comictaggerlib/matchselectionwindow.py b/comictaggerlib/matchselectionwindow.py index 35e48ec..416a104 100644 --- a/comictaggerlib/matchselectionwindow.py +++ b/comictaggerlib/matchselectionwindow.py @@ -116,6 +116,8 @@ class MatchSelectionWindow(QtGui.QDialog): self.twList.setItem(row, 2, item) item_text = match['issue_title'] + if item_text is None: + item_text = "" item = QtGui.QTableWidgetItem(item_text) item.setData( QtCore.Qt.ToolTipRole, item_text ) item.setFlags(QtCore.Qt.ItemIsSelectable| QtCore.Qt.ItemIsEnabled)