Fix a type mismatch error in lubuntu-notifier.py

ubuntu/kinetic ubuntu/0.5.1_22.10.3
Aaron Rainbolt 2 years ago
parent 3f258b6b79
commit cb529ec904

7
debian/changelog vendored

@ -1,3 +1,10 @@
lubuntu-update-notifier (0.5.1~22.10.3) kinetic; urgency=medium
* Don't try to pass a string to QTreeWidgetItem when it expects an
Iterable[str]. (LP: #2012823)
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Sun, 26 Mar 2023 16:29:40 -0500
lubuntu-update-notifier (0.5.1~22.10.2) kinetic; urgency=medium lubuntu-update-notifier (0.5.1~22.10.2) kinetic; urgency=medium
* SRU backport of 0.5.1 to the Kinetic stable release. * SRU backport of 0.5.1 to the Kinetic stable release.

@ -129,7 +129,7 @@ class Dialog(QWidget):
if len(pkg_delete) > 0: if len(pkg_delete) > 0:
toDelete = QTreeWidgetItem([_('Remove')]) toDelete = QTreeWidgetItem([_('Remove')])
for p in pkg_delete: for p in pkg_delete:
td_child = QTreeWidgetItem(p.name) td_child = QTreeWidgetItem([p.name])
toDelete.addChild(td_child) toDelete.addChild(td_child)
toDelete.setIcon(0, QIcon.fromTheme("edit-delete")) toDelete.setIcon(0, QIcon.fromTheme("edit-delete"))
self.tw.addTopLevelItem(toDelete) self.tw.addTopLevelItem(toDelete)

Loading…
Cancel
Save