From a175069ed37b017fc1659cd145d6804608e42bb4 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Sun, 26 Mar 2023 10:58:00 -0500 Subject: [PATCH] Fix a type mismatch error in lubuntu-notifier.py --- debian/changelog | 2 ++ lubuntu-notifier.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 470a3f0..6cef306 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ lubuntu-update-notifier (0.5.4) lunar; urgency=medium * Disconnect the status_changed() function from the status-changed signal in repair_install(), as it interferes with upgrade_progress_download(). (LP: #2012702) + * Don't try to pass a string to QTreeWidgetItem when it expects an + Iterable[str]. (LP: #2012823) -- Aaron Rainbolt Sun, 26 Mar 2023 10:48:15 -0500 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)