Ubuntu Pastebin

Paste from ken at Mon, 20 Jul 2015 15:28:26 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
=== modified file 'tests/autopilot/ubuntu_system_settings/__init__.py'
--- tests/autopilot/ubuntu_system_settings/__init__.py	2015-07-06 12:59:26 +0000
+++ tests/autopilot/ubuntu_system_settings/__init__.py	2015-07-20 15:25:27 +0000
@@ -1233,6 +1233,7 @@
     def connect_to_hidden_network(self, name, security='none', username=None,
                                   password=None, auth=None, protocol=None,
                                   cancel=False):
+        kbd = ubuntuuitoolkit.get_keyboard()
         dialog = self._click_connect_to_hidden_network()
         dialog._scroll_to_and_click = self._scroll_to_and_click
         dialog.enter_name(name)
@@ -1248,9 +1249,11 @@
         if password:
             dialog.enter_password(password)
         if cancel:
+            kbd.dismiss()
             dialog.cancel()
             return self
         else:
+            kbd.dismiss()
             dialog.connect()
             return dialog
 
Download as text