Move pnac config read() earlier

This commit is contained in:
Kai Huuhko 2014-07-22 11:34:46 +03:00
parent 975ec2d4d5
commit 176f5dcd18
1 changed files with 1 additions and 1 deletions

View File

@ -981,6 +981,7 @@ class ServiceView(ObjectView):
self.forget = self.add_button(self.box, "Forget Network",
self._forget)
elif self.type == "wifi" and "ieee8021x" in self.security_mode:
pnac_conf.read()
self.forget = self.add_button(self.box, "Forget Network",
self._forget)
if not pnac_conf.has_section(self.name):
@ -1060,7 +1061,6 @@ class ServiceView(ObjectView):
# section: Two Phase Authentication
if (self.type == "wifi") and ("ieee8021x" in self.security_mode):
pnac_conf.read()
fr, bx = self.add_frame_and_box(self.box, "ieee8021x")
self.ieee8021x_frame = fr
#cfg_sec = pnac_conf.section_get(self.name)