Fixed infinite loop (and code duplication - using QStringList::split is simpler than reimplementing it by hand...) noticed by Lutz Rogowski.
Fixed infinite loop (and code duplication - using QStringList::split is
simpler than reimplementing it by hand...) noticed by Lutz Rogowski.

svn path=/trunk/kdepim/; revision=398227

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