Skip to content

Commit

Permalink
gui/semanagePage: Close "edit" and "add" dialogues when successfull
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
vmojzis authored and stephensmalley committed Mar 1, 2018
1 parent 8caec17 commit 6f4b1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/semanagePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def addDialog(self):

while self.dialog.run() == Gtk.ResponseType.OK:
try:
if not self.add():
if self.add() is False:
continue
break
except ValueError as e:
Expand All @@ -153,7 +153,7 @@ def propertiesDialog(self):
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:
Expand Down

0 comments on commit 6f4b1bb

Please sign in to comment.