forward port SVN commit 611541 by winterz:
forward port SVN commit 611541 by winterz:

crash guard.

svn path=/trunk/KDE/kdepim/; revision=611548

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