[systemd-devel] [PATCH 3/3] gnome-ask-password-agent: do not send password when user hits "Cancel"

Michael Laß bevan at bi-co.net
Sun Aug 18 13:14:36 PDT 2013


When the user hits the Cancel button no action should be triggered.
---
 src/gnome-ask-password-agent.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala
index ea43b08..571cd94 100644
--- a/src/gnome-ask-password-agent.vala
+++ b/src/gnome-ask-password-agent.vala
@@ -213,7 +213,8 @@ public class MyStatusIcon : StatusIcon {
                 password_dialog = null;
 
                 if (result == ResponseType.REJECT ||
-                    result == ResponseType.DELETE_EVENT)
+                    result == ResponseType.DELETE_EVENT ||
+                    result == ResponseType.CANCEL)
                         return;
 
                 Pid child_pid;
-- 
1.8.3.4



More information about the systemd-devel mailing list