[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.1/kdelibs/khtml
From: Maks Orlovich <maksim () kde ! org>
Date: 2008-08-27 17:19:12
Message-ID: 1219857552.942633.22869.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<khtml::ChildFrame*>::Iterator it = m_objects.begin();
const QList<khtml::ChildFrame*>::Iterator itEnd = m_objects.end();
for (; it != itEnd; ++it) {
- KHTMLPart* const part = static_cast<KHTMLPart *>((KParts::ReadOnlyPart \
*)(*it)->m_part);
- if (part->inherits("KHTMLPart"))
+ KHTMLPart* const part = qobject_cast<KHTMLPart *>( (*it)->m_part );
+ if (part)
part->d->setFlagRecursively(flag, value);
}/*next it*/
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic