144a58c746
This is needed as otherwise we can have a situation where d->mainItem is null, yet we still have connections to an object that exists causing a crash if the old mainItem resizes. BUG: 343963 Change-Id: Ie398a591915fa02d4d97ce7ad5289e3b24038087