From e1ed65110380161f42eb0e3090197efeee012446 Mon Sep 17 00:00:00 2001 From: "glatzor@ubuntu.com" <> Date: Mon, 7 Aug 2006 10:31:09 +0200 Subject: * Allow to select all or none update - fixes #42296 * Do not set the cursor by default in the treeview sources - fixes #54046 --- SoftwareProperties/SoftwareProperties.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'SoftwareProperties') 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() -- cgit v1.2.3