From 600d2a543df68000c6cd00b48645fcb6406caa42 Mon Sep 17 00:00:00 2001 From: cryzed Date: Fri, 3 Nov 2017 13:54:43 +0100 Subject: [PATCH] Exit successfully when the user makes no selection --- misc/userscripts/qute-pass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass index 659ed32b8..1592d6349 100755 --- a/misc/userscripts/qute-pass +++ b/misc/userscripts/qute-pass @@ -131,6 +131,10 @@ def main(arguments): selection = candidates.pop() if len(candidates) == 1 else dmenu(sorted(candidates), arguments.dmenu_invocation, arguments.io_encoding) + # Nothing was selected, simply return + if not selection: + return ExitCodes.SUCCESS + secret = pass_(selection, arguments.io_encoding) # Match username