Backport SVN commit 938149 by vkrause from trunk:
Handle cancel correctly.
svn path=/branches/KDE/4.2/kdepimlibs/; revision=938165