From e53e756e3f648771eaa6686da4156ae48fd17a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 2 Oct 2017 16:30:16 +0200 Subject: [PATCH] Ne crashe plus quand le clipboard est vide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Par ailleurs, ceci permet de ne pas conserver le mot de passe dans le presse-papier, puisque celui-ci est réinitialisé à la chaine de caractère vide par la suite. --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.py b/client.py index 5cc60ae..1d51fb4 100755 --- a/client.py +++ b/client.py @@ -740,7 +740,7 @@ def show_file(options): os.waitpid(proc.pid, 0) # Repope ancien pass - if old_clipboard: + if old_clipboard is not None: saveclipboard(restore=True, old_clipboard=old_clipboard) @need_filename