Backport r883810 by tmcguire from trunk to the 4.1 branch:
Merged revisions 883308 via svnmerge from
svn+ssh://tmcguire@svn.kde.org/home/kde/branches/kdepim/enterprise4/kdepimlibs
........
r883308 | mutz | 2008-11-12 17:38:31 +0100 (Wed, 12 Nov 2008) | 1 line Fix signing of multiple uids (!= all, though) at the same time. We need to create artificial states after each UID selection; otherwise, action() isn't called and the whole thing blocks. Also, we're doing multihtreading here, so don't use a static char buf, but a member std::string.
........
svn path=/branches/KDE/4.1/kdepimlibs/; revision=883860