Merge ~nteodosio/software-properties:network into software-properties:ubuntu/master

Proposed by Nathan Teodosio
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 970dbfee639624721ce93772239a52fe0da8b36f
Merged at revision: 970dbfee639624721ce93772239a52fe0da8b36f
Proposed branch: ~nteodosio/software-properties:network
Merge into: software-properties:ubuntu/master
Diff against target: 29 lines (+6/-5)
1 file modified
softwareproperties/gtk/DialogUaAttach.py (+6/-5)
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+436769@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/softwareproperties/gtk/DialogUaAttach.py b/softwareproperties/gtk/DialogUaAttach.py
index 42d5365..5de167c 100644
--- a/softwareproperties/gtk/DialogUaAttach.py
+++ b/softwareproperties/gtk/DialogUaAttach.py
@@ -46,8 +46,6 @@ class DialogUaAttach:
46 self.net_monitor, self.net_monitor.get_network_available(), 146 self.net_monitor, self.net_monitor.get_network_available(), 1
47 )47 )
4848
49 self.start_magic_attach()
50
51 def run(self):49 def run(self):
52 self.dialog.run()50 self.dialog.run()
53 self.dialog.hide()51 self.dialog.hide()
@@ -191,9 +189,12 @@ class DialogUaAttach:
191 self.no_connection.set_visible(not available)189 self.no_connection.set_visible(not available)
192 self.radio_net_control_box.set_sensitive(available)190 self.radio_net_control_box.set_sensitive(available)
193 self.confirm_net_control_box.set_sensitive(available)191 self.confirm_net_control_box.set_sensitive(available)
194 # wait() may have timed out without internet; Restart polling.192 if available:
195 if (available and self.poll == None and not first_run):193 if self.pin == "":
196 self.poll = GLib.Thread.new("poll", self.poll_for_magic_token)194 self.start_magic_attach()
195 elif self.poll == None:
196 # wait() timed out without internet; Restart polling.
197 self.poll = GLib.Thread.new("poll", self.poll_for_magic_token)
197198
198 def finish(self):199 def finish(self):
199 self.dialog.response(Gtk.ResponseType.OK)200 self.dialog.response(Gtk.ResponseType.OK)

Subscribers

People subscribed via source and target branches