Backport fix for infinite loop when splitting up resources
Backport fix for infinite loop when splitting up resources

svn path=/branches/KDE_3_4_BRANCH/kdepim/; revision=398229

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