SVN commit 523319 by dfaure: Don't use inherits(), it's fragile M +5 -3 koChart.cc --- trunk/koffice/interfaces/koChart.cc #523318:523319 @@ -47,9 +47,11 @@ WizardExtension *Part::wizardExtension() { QObjectList::ConstIterator end( QObject::children().end() ); - for (QObjectList::ConstIterator it( QObject::children().begin() ); it != end; ++it ) - if ( (*it)->inherits( "KoChart::WizardExtension" ) ) - return static_cast( *it ); + for (QObjectList::ConstIterator it( QObject::children().begin() ); it != end; ++it ) { + WizardExtension* we = ::qobject_cast( *it ); + if ( we ) + return we; + } return 0; }