diff options
| author | glatzor@ubuntu.com <> | 2006-08-16 17:18:33 +0200 |
|---|---|---|
| committer | glatzor@ubuntu.com <> | 2006-08-16 17:18:33 +0200 |
| commit | 7310859fbcb57e2e9fdf6b9ea39ab20d7eabfc52 (patch) | |
| tree | ecc4137e926b86c31101562386b41eec742e8354 /SoftwareProperties | |
| parent | 6610fc16d211497195a02783ab52b3216bacce3c (diff) | |
| parent | 141d62c9fdbd18027d79869ddf1ab54ad67e3b15 (diff) | |
| download | python-apt-7310859fbcb57e2e9fdf6b9ea39ab20d7eabfc52.tar.gz | |
*merge with mvo
Diffstat (limited to 'SoftwareProperties')
| -rw-r--r-- | SoftwareProperties/SoftwareProperties.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 18e5d260..8ae98b55 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -720,11 +720,10 @@ class SoftwareProperties(SimpleGladeApp): self.source_store.append([not source.disabled, contents, source, False, True]) - if len(self.source_store) < 1: + (path_x, path_y) = self.treeview_sources.get_cursor() + if len(self.source_store) < 1 or path_x <0: self.button_remove.set_sensitive(False) self.button_edit.set_sensitive(False) - else: - self.treeview_sources.set_cursor(0) self.distro.get_sources(self.sourceslist) self.distro_to_widgets() |
