Home GnuPG

Fix & make clearClipboard more robust

Description

Fix & make clearClipboard more robust

The current version had 2 bugs:

  1. The clippedText was never cleared, that isn't that much of a problem

since it is overriden anyways

  1. The condition to check if clearing should happen was always true

since it compared the clippedText member variable with itself. The
clippedText variables that are create above the condition are out of
scope.

I fixed these bugs and clear both clipboard types if they contain the
given text, ignoring the setting, which should make it more robust.

Details

Provenance
Lukas Vogel <lukedirtwalker@gmail.com>Authored on Mar 12 2018, 3:55 PM
Parents
rGPGPASSbaf5ea8071cf: Merge pull request #358 from lukedirtwalker/issue273
Branches
Unknown
Tags
Unknown

Event Timeline