forward port SVN commit 537478 by winterz:
forward port SVN commit 537478 by winterz:

didn't read far enough down into the commit logs.. this is the way
Till wanted to fix the crash in slotNextMessage() as commented on by monur.

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

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