mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-22 14:02:17 +00:00
gui/semanagePage: Close "edit" and "add" dialogues when successfull
"Edit" and "add" dialogues weren't closed after successful transaction ("add" and "edit" methods return "None" if successful). Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
This commit is contained in:
parent
8caec179c3
commit
6f4b1bbdea
@ -140,7 +140,7 @@ class semanagePage:
|
||||
|
||||
while self.dialog.run() == Gtk.ResponseType.OK:
|
||||
try:
|
||||
if not self.add():
|
||||
if self.add() is False:
|
||||
continue
|
||||
break
|
||||
except ValueError as e:
|
||||
@ -153,7 +153,7 @@ class semanagePage:
|
||||
self.dialog.set_position(Gtk.WindowPosition.MOUSE)
|
||||
while self.dialog.run() == Gtk.ResponseType.OK:
|
||||
try:
|
||||
if not self.modify():
|
||||
if self.modify() is False:
|
||||
continue
|
||||
break
|
||||
except ValueError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user