QList::erase changes end() so caching it resulted in a crash.
QList::erase changes end() so caching it resulted in a crash.

Reported during Krush day as
"katastrophe 14:14, 8 June 2008 (CEST) crash if you make a new distribution list and change its name, then click ok"

Actually already crashes when creating a new distribution list and keeping the default name.

Most likely introduced during Qt4 porting, e.g. different behavior or Qt3's QValueList and Qt4's QList regarding erase() and/or end()
so it could be somewhere else as well.

CCMAIL: kde-pim@kde.org


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

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