Fixed a porting related bug in PluginRepositoryDialog.

Mon, 18 Jan 2010 18:54:11 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 18 Jan 2010 18:54:11 +0000
changeset 80
166d5df6337c
parent 79
ad8f102f45cf
child 81
a40a255e56e4

Fixed a porting related bug in PluginRepositoryDialog.

PluginManager/PluginRepositoryDialog.py file | annotate | diff | comparison | revisions
--- a/PluginManager/PluginRepositoryDialog.py	Mon Jan 18 18:02:08 2010 +0000
+++ b/PluginManager/PluginRepositoryDialog.py	Mon Jan 18 18:54:11 2010 +0000
@@ -129,10 +129,10 @@
         if self.__repositoryMissing or current is None:
             return
         
-        self.urlEdit.setText(current.data(0, urlRole))
-        self.descriptionEdit.setPlainText(
-            self.__formatDescription(current.data(0, descrRole)))
-        self.authorEdit.setText(current.data(0, authorRole))
+        self.urlEdit.setText(current.data(0, urlRole) or "")
+        self.descriptionEdit.setPlainText(current.data(0, descrRole) and \
+            self.__formatDescription(current.data(0, descrRole)) or "")
+        self.authorEdit.setText(current.data(0, authorRole) or "")
     
     def __selectedItems(self):
         """

eric ide

mercurial