Merge lp:~yofel/software-properties/lp-944876 into lp:software-properties

Proposed by Philip Muškovac
Status: Merged
Merged at revision: 752
Proposed branch: lp:~yofel/software-properties/lp-944876
Merge into: lp:software-properties
Diff against target: 25 lines (+8/-0)
1 file modified
softwareproperties/kde/SoftwarePropertiesKDE.py (+8/-0)
To merge this branch: bzr merge lp:~yofel/software-properties/lp-944876
Reviewer Review Type Date Requested Status
Ubuntu Core Development Team Pending
Review via email: mp+102040@code.launchpad.net

Description of the change

This works around the broken update policy behaviour in the KDE UI and should be backported to oneiric.

I know this isn't much of a proper fix, but works and shouldn't cause any regressions otherwise.
For 12.10 I'll see if we can find someone to rewrite the KDE ui to use the dbus interface.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Noel Scully (oil777) :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwareproperties/kde/SoftwarePropertiesKDE.py'
2--- softwareproperties/kde/SoftwarePropertiesKDE.py 2011-11-21 15:47:12 +0000
3+++ softwareproperties/kde/SoftwarePropertiesKDE.py 2012-04-15 21:09:17 +0000
4@@ -149,6 +149,10 @@
5 def init_release_upgrades(self):
6 " setup the widgets that allow configuring the release upgrades "
7 i = self.get_release_upgrades_policy()
8+
9+ # FIXME: hack for LP: #944876
10+ i = (i + 1) % 3
11+
12 self.userinterface.combobox_release_upgrades.setCurrentIndex(i)
13 kapp.connect(self.userinterface.combobox_release_upgrades, SIGNAL("currentIndexChanged(int)"), self.on_combobox_release_upgrades_changed)
14
15@@ -395,6 +399,10 @@
16 def on_combobox_release_upgrades_changed(self, combobox):
17 """ set the release upgrades policy """
18 i = self.userinterface.combobox_release_upgrades.currentIndex()
19+
20+ # FIXME: hack for LP: #944876
21+ i = (i - 1) % 3
22+
23 self.set_release_upgrades_policy(i)
24
25 def on_combobox_server_changed(self, combobox):

Subscribers

People subscribed via source and target branches

to status/vote changes: