From cb529ec9046e42941e12b083175997dd8f714fa2 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Sun, 26 Mar 2023 16:44:32 -0500 Subject: [PATCH] Fix a type mismatch error in lubuntu-notifier.py --- debian/changelog | 7 +++++++ lubuntu-notifier.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0b98d49..74bab1a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 26 Mar 2023 16:29:40 -0500 + lubuntu-update-notifier (0.5.1~22.10.2) kinetic; urgency=medium * SRU backport of 0.5.1 to the Kinetic stable release. diff --git a/lubuntu-notifier.py b/lubuntu-notifier.py index 0793084..171b12c 100755 --- a/lubuntu-notifier.py +++ b/lubuntu-notifier.py @@ -129,7 +129,7 @@ class Dialog(QWidget): if len(pkg_delete) > 0: toDelete = QTreeWidgetItem([_('Remove')]) for p in pkg_delete: - td_child = QTreeWidgetItem(p.name) + td_child = QTreeWidgetItem([p.name]) toDelete.addChild(td_child) toDelete.setIcon(0, QIcon.fromTheme("edit-delete")) self.tw.addTopLevelItem(toDelete)