Browse files

qtcollider: optimization - avoid connecting signals with unnormalized…

… signatures
  • Loading branch information...
1 parent b2246b5 commit b05fae3aabfb3c6f710bf568906c7b9a2c0c6983 @jleben jleben committed May 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 QtCollider/QObjectProxy.cpp
View
4 QtCollider/QObjectProxy.cpp
@@ -44,7 +44,9 @@ QObjectProxy::QObjectProxy( QObject *qObject_, PyrObject *scObject_ )
_scClassName( slotRawSymbol( &scObject_->classptr->name )->name )
{
ProxyToken *token = new ProxyToken( this, qObject );
- connect( qObject, SIGNAL( destroyed( QObject* ) ), this, SLOT( invalidate() ) );
+ // WARNING: make sure the signal is already in normalized signature,
+ // to avoid triggering very expensive normalization!
+ connect( qObject, SIGNAL(destroyed(QObject*)), this, SLOT(invalidate()) );
qObject->installEventFilter( this );
}

0 comments on commit b05fae3

Please sign in to comment.