summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-03-09 20:13:51 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-03-09 20:13:51 +0000
commit9a62bb565f2ca0f6c071b3593f47a54753abb1aa (patch)
treef61b9e0eccd51e260d0152a710911321b3d49d91
parent550fc530abe739f7e9b64ccb21244a01b7cc5734 (diff)
fix issue #389
closes #389
-rw-r--r--alot/ui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 59bada60..5a0c484e 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -256,7 +256,8 @@ class UI(object):
"""
newpile = self.notificationbar.widget_list
for l in messages:
- newpile.remove(l)
+ if l in newpile:
+ newpile.remove(l)
if newpile:
self.notificationbar = urwid.Pile(newpile)
else: