Forwardport SVN commit 750967 by vkrause from proko2 branch:
Forwardport SVN commit 750967 by vkrause from proko2 branch:

That's apparently the correct way to check the error code.

Kolab issue 2182

svn path=/branches/work/kdab-post-4.0/kdepim/; revision=750968

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi