Fixed warning message if QMetaObjectCleanUp::setMetaObject is invoked twice.

If the passed object is the same, the warning message is not displayed any more.
If the passed object is different, a message is still displayed.
This resolves bug 1947.
pull/1/head
Michele Calgaro 10 years ago
parent 686236f374
commit 85e2ff9cf6

@ -1244,7 +1244,7 @@ TQMetaObjectCleanUp::~TQMetaObjectCleanUp()
void TQMetaObjectCleanUp::setMetaObject( TQMetaObject *&mo )
{
#if defined(QT_CHECK_RANGE)
if ( metaObject )
if (metaObject && metaObject != &mo)
tqWarning( "TQMetaObjectCleanUp::setMetaObject: Double use of TQMetaObjectCleanUp!" );
#endif
metaObject = &mo;

Loading…
Cancel
Save