Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Abente <martin.abente.lahaye@gmail.com>2011-01-11 19:54:07 (GMT)
committer Anish Mangal <anish@activitycentral.com>2012-02-01 12:33:29 (GMT)
commit86d07326ddc58256aade532b40836972b4dd3c3b (patch)
treed1a5318112eff510b8af4281e5f1fe8b6ac70a33
parent140884b1aa36934ae4c5c4e821c02e9ef2d11524 (diff)
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.
-rw-r--r--extensions/cpsection/modemconfiguration/view.py12
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 @@ class ModemConfiguration(SectionView):
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 \