Fix crash during the resetModel
Fix crash during the resetModel

When the qDeleteAll is called on a container we cannot modify the
container. This behaviour was introduced in Qt4.8.

sandsmark/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,kolab-groupware/zanshin