Merge lp:~mvo/software-properties/fix-policykit-prompt-on-startup into lp:software-properties

Proposed by Michael Vogt
Status: Merged
Merged at revision: 756
Proposed branch: lp:~mvo/software-properties/fix-policykit-prompt-on-startup
Merge into: lp:software-properties
Diff against target: 35 lines (+10/-9)
1 file modified
softwareproperties/gtk/SoftwarePropertiesGtk.py (+10/-9)
To merge this branch: bzr merge lp:~mvo/software-properties/fix-policykit-prompt-on-startup
Reviewer Review Type Date Requested Status
Ubuntu Core Development Team Pending
Review via email: mp+104655@code.launchpad.net

Description of the change

This fixes a policykit prompt on startup if the default policy is set to something other than "daily" for Check for updates.

To reproduce:
1. open software-properties-gtk
2. go to the updates tab
3. select "never" in "automatic check for updates"
4. close software-properties-gtk
5. open software-properties-gtk again and see that it prompts for a policykit prompt with that branch this is fixed

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwareproperties/gtk/SoftwarePropertiesGtk.py'
2--- softwareproperties/gtk/SoftwarePropertiesGtk.py 2012-03-07 09:13:48 +0000
3+++ softwareproperties/gtk/SoftwarePropertiesGtk.py 2012-05-04 00:28:18 +0000
4@@ -230,15 +230,6 @@
5 self.combobox_update_interval.connect("changed",
6 self.on_combobox_update_interval_changed)))
7
8- self.handlers.append(
9- (self.combobox_security_updates,
10- self.combobox_security_updates.connect("changed",
11- self.set_sec_update_automation_level)))
12-
13- self.handlers.append(
14- (self.combobox_security_updates,
15- self.combobox_other_updates.connect("changed",
16- self.set_other_update_automation_level)))
17
18 def show_auto_update_level(self):
19 """Represent the level of update automation in the user interface"""
20@@ -268,6 +259,16 @@
21 self.combobox_other_updates.set_active(i)
22 break
23
24+ self.handlers.append(
25+ (self.combobox_security_updates,
26+ self.combobox_security_updates.connect("changed",
27+ self.set_sec_update_automation_level)))
28+
29+ self.handlers.append(
30+ (self.combobox_other_updates,
31+ self.combobox_other_updates.connect("changed",
32+ self.set_other_update_automation_level)))
33+
34 def init_distro(self):
35 """Setup the user interface elements to represent the distro"""
36

Subscribers

People subscribed via source and target branches

to status/vote changes: