summaryrefslogtreecommitdiff
path: root/src/pubsub.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-21 02:01:23 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-21 02:01:23 +0200
commit0fa3cf756a50dffe01e46c725245445dc1cfd39b (patch)
treed8443b51a8fe771500de361417c58208f930005c /src/pubsub.py
parent06f4dd783ed946168be00abdfdf4ffc127ba21e5 (diff)
downloadpoezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.tar.gz
poezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.tar.bz2
poezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.tar.xz
poezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.zip
Reset the cursor position from the item list when node changes
Diffstat (limited to 'src/pubsub.py')
-rw-r--r--src/pubsub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubsub.py b/src/pubsub.py
index 0b8b02c5..30ffd624 100644
--- a/src/pubsub.py
+++ b/src/pubsub.py
@@ -183,7 +183,7 @@ class PubsubBrowserTab(tabs.Tab):
node’s items
"""
columns = self.item_list_header.get_columns()
- self.item_listview.lines = []
+ self.item_listview.empty()
log.debug('display_items_from_node: %s' % node.items)
for item in node.items:
self.item_listview.lines.append(item.to_dict(columns))