127 @param previous reference to the old current item (QTreeWidgetItem) |
127 @param previous reference to the old current item (QTreeWidgetItem) |
128 """ |
128 """ |
129 if self.__repositoryMissing or current is None: |
129 if self.__repositoryMissing or current is None: |
130 return |
130 return |
131 |
131 |
132 self.urlEdit.setText(current.data(0, urlRole)) |
132 self.urlEdit.setText(current.data(0, urlRole) or "") |
133 self.descriptionEdit.setPlainText( |
133 self.descriptionEdit.setPlainText(current.data(0, descrRole) and \ |
134 self.__formatDescription(current.data(0, descrRole))) |
134 self.__formatDescription(current.data(0, descrRole)) or "") |
135 self.authorEdit.setText(current.data(0, authorRole)) |
135 self.authorEdit.setText(current.data(0, authorRole) or "") |
136 |
136 |
137 def __selectedItems(self): |
137 def __selectedItems(self): |
138 """ |
138 """ |
139 Private method to get all selected items without the toplevel ones. |
139 Private method to get all selected items without the toplevel ones. |
140 |
140 |