Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms/sugar/0043-Fix-no-restart-after-provider-info-selection.patch
blob: ec9cc4e2fdceaa58fb16cb2cc3c6665b2f6e2878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From a65cd94c79bf0cddf35316401a2f2d916e41734d Mon Sep 17 00:00:00 2001
From: Martin Abente <martin.abente.lahaye@gmail.com>
Date: Tue, 11 Jan 2011 19:54:07 +0000
Subject: [PATCH sugar 43/74] Fix no restart after provider info selection

Current 3g provider information selection logic bypassed the
validation process, thefore no restart was required.

Note that changes in the current session does not modify
the current loaded connection information, and since the
connection information is loaded at startup, restart is
required.
---
 extensions/cpsection/modemconfiguration/view.py |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/extensions/cpsection/modemconfiguration/view.py b/extensions/cpsection/modemconfiguration/view.py
index fad141d..a16de88 100644
--- a/extensions/cpsection/modemconfiguration/view.py
+++ b/extensions/cpsection/modemconfiguration/view.py
@@ -341,14 +341,10 @@ def __provider_selected_cb(self, combo):
     def __plan_selected_cb(self, combo):
         model = combo.get_model()
         plan = model.get_row_plan(combo.get_active())
-        self._username_entry.set_value(plan['username'])
-        self._username_entry.set_text_from_model()
-        self._password_entry.set_value(plan['password'])
-        self._password_entry.set_text_from_model()
-        self._number_entry.set_value(plan['number'])
-        self._number_entry.set_text_from_model()
-        self._apn_entry.set_value(plan['apn'])
-        self._apn_entry.set_text_from_model()
+        self._username_entry.entry.set_text(plan['username'])
+        self._password_entry.entry.set_text(plan['password'])
+        self._number_entry.entry.set_text(plan['number'])
+        self._apn_entry.entry.set_text(plan['apn'])
 
     def _validate(self):
         if self._username_entry.is_valid and \
-- 
1.7.6