Skip to content

Commit

Permalink
Fixed user-visible messages (bsc#1084015)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Feb 17, 2020
1 parent beadd5a commit ff69f5b
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/include/apparmor/profile_dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1477,19 +1477,11 @@ def SelectProfileForm(profiles, formhelp, formtitle, iconname)
next
end # TODO ELSE POPUP NO ENTRY SELECTED ERROR
elsif id == :delete
if Popup.YesNoHeadline(
_("Delete profile confirmation"),
Ops.add(
Ops.add(
_("Are you sure you want to delete the profile "),
profilename
),
_(
" ?\nAfter this operation the AppArmor module will reload the profile set."
)
)
)
Builtins.y2milestone(Ops.add("Deleted ", profilename))
# Translators: %1 is the name of the profile.
popup_msg = Builtins.sformat(_("Are you sure you want to delete the profile \"%1\"?"), profilename )
popup_msg += "\n" + _("After this operation the AppArmor module will reload the profile set.")
if Popup.YesNoHeadline(_("Delete profile confirmation"), popup_msg)
Builtins.y2milestone("Deleted %1", profilename)
result = SCR.Write(path(".apparmor_profiles.delete"), profilename)
result2 = SCR.Execute(path(".target.bash"), "/sbin/apparmor_parser -r /etc/apparmor.d")
end
Expand Down

0 comments on commit ff69f5b

Please sign in to comment.