check if the parent() is passed an invalid modelindex. approved by Pragma.
check if the parent() is passed an invalid modelindex.
approved by Pragma.

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

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