summaryrefslogtreecommitdiff
path: root/misc/userscripts/qute-keepass
diff options
context:
space:
mode:
authorJay Kamat <jaygkamat@gmail.com>2018-03-22 21:35:00 -0400
committerJay Kamat <jaygkamat@gmail.com>2018-03-22 21:35:00 -0400
commita1776087e0233009721cf82a9a12c6deb9b0cebe (patch)
tree399da9a35bf4449cd06f5241fa9cb8570cee8a43 /misc/userscripts/qute-keepass
parent948866f4f29f48c707d527ea71b23624aa9deb25 (diff)
downloadqutebrowser-a1776087e0233009721cf82a9a12c6deb9b0cebe.tar.gz
qutebrowser-a1776087e0233009721cf82a9a12c6deb9b0cebe.zip
Fix login when only one entry is available
Diffstat (limited to 'misc/userscripts/qute-keepass')
-rwxr-xr-xmisc/userscripts/qute-keepass9
1 files changed, 5 insertions, 4 deletions
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 ''