Skip to content

Commit

Permalink
policycoreutils/sepolicy/gui: fix current selinux state radiobutton
Browse files Browse the repository at this point in the history
Radiobutton was always set to "Permissive" and couldn't be switched.
Update radiobutton together with status text in bottom left corner.

Signed-off-by: Vit Mojzis <[email protected]>
  • Loading branch information
vmojzis authored and stephensmalley committed Nov 29, 2016
1 parent ab27085 commit c034875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sepolicy/sepolicy/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2609,9 +2609,10 @@ def advanced_radio_select(self, button):
def set_enforce_text(self, value):
if value:
self.status_bar.push(self.context_id, _("System Status: Enforcing"))
self.current_status_enforcing.set_active(True)
else:
self.status_bar.push(self.context_id, _("System Status: Permissive"))
self.current_status_permissive.set_active(True)
self.current_status_permissive.set_active(True)

def set_enforce(self, button):
self.dbus.setenforce(button.get_active())
Expand Down

0 comments on commit c034875

Please sign in to comment.