summaryrefslogtreecommitdiff
path: root/SoftwareProperties/SoftwareProperties.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-08-07 16:14:13 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-08-07 16:14:13 +0200
commit4b091d41293155442ce315bbe93a88fc1f5d16c6 (patch)
treec15a5c02f10865c14bdeffe5b9524633785f04be /SoftwareProperties/SoftwareProperties.py
parent0fc23b591dfd1615910e58f063f8cfbebe2c8fc4 (diff)
parente1ed65110380161f42eb0e3090197efeee012446 (diff)
downloadpython-apt-4b091d41293155442ce315bbe93a88fc1f5d16c6.tar.gz
* merged with glatzor
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
-rw-r--r--SoftwareProperties/SoftwareProperties.py5
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()