Home GnuPG

Make logic when command is finished more clear

Description

Make logic when command is finished more clear

Always clear list of files (or emails) when handling of files (or emails)
is done. Finish the command if everything is done.

Minor stylistic change: Always use the STL-style empty() to check if a
container is empty().