diff --git a/misc/userscripts/qute-keepass b/misc/userscripts/qute-keepass index 3258a3e0f..55d39e6e4 100755 --- a/misc/userscripts/qute-keepass +++ b/misc/userscripts/qute-keepass @@ -219,11 +219,12 @@ def run(args): args.dmenu_invocation, args.io_encoding) - if selection not in candidates_map: - stderr("'{}' was not a valid entry!").format(selection) - return ExitCodes.USER_QUIT + if selection not in candidates_map: + stderr("'{}' was not a valid entry!").format(selection) + return ExitCodes.USER_QUIT + + selection = candidates_map[selection] - selection = candidates_map[selection] username, password = candidate_to_secret(selection) insert_mode = ';; enter-mode insert' if args.insert_mode else ''