diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-20 16:49:57 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-20 16:49:57 +0100 |
| commit | 480b1f25929a339b0de10096f0162308e8a0f6c3 (patch) | |
| tree | 9fc64d4d30b50cfa1b2d52be8822dccd10a42e02 /SoftwareProperties/SoftwareProperties.py | |
| parent | 85738204aa2e56e2fafd1eb3ec724b4b3d6fa21c (diff) | |
| download | python-apt-480b1f25929a339b0de10096f0162308e8a0f6c3.tar.gz | |
* Restore the correct path after reloading the sources list
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
| -rw-r--r-- | SoftwareProperties/SoftwareProperties.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 0378bf29..5f4b5054 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -210,7 +210,7 @@ class SoftwareProperties(SimpleGladeApp): self.treeview2.append_column(keys_col) def reload_sourceslist(self): - path = self.treeview_sources.get_cursor() + (path_x, path_y) = self.treeview_sources.get_cursor() self.source_store.clear() for source in self.sourceslist.list: if source.invalid: @@ -227,7 +227,7 @@ class SoftwareProperties(SimpleGladeApp): self.button_remove.set_sensitive(False) self.button_edit.set_sensitive(False) else: - if not self.treeview_sources.get_cursor(path): + if path_x == None or self.treeview_sources.set_cursor(path_x): self.treeview_sources.set_cursor(0) self.button_remove.set_sensitive(True) self.button_edit.set_sensitive(True) |
