From kde-commits Wed Aug 27 17:19:12 2008 From: Maks Orlovich Date: Wed, 27 Aug 2008 17:19:12 +0000 To: kde-commits Subject: branches/KDE/4.1/kdelibs/khtml Message-Id: <1219857552.942633.22869.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121985756222636 SVN commit 853405 by orlovich: Backport r853395 by vtokarev, fixing #155597: do the same changes as in r691143 but for objects to avoid random hardly reproducible crashes on toggling content editable state M +2 -2 khtml_part.cpp --- branches/KDE/4.1/kdelibs/khtml/khtml_part.cpp #853404:853405 @@ -2668,8 +2668,8 @@ QList::Iterator it = m_objects.begin(); const QList::Iterator itEnd = m_objects.end(); for (; it != itEnd; ++it) { - KHTMLPart* const part = static_cast((KParts::ReadOnlyPart *)(*it)->m_part); - if (part->inherits("KHTMLPart")) + KHTMLPart* const part = qobject_cast( (*it)->m_part ); + if (part) part->d->setFlagRecursively(flag, value); }/*next it*/ }