diff options
author | Michele Calgaro <[email protected]> | 2014-08-18 00:22:12 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2014-08-18 00:22:12 +0900 |
commit | 85e2ff9cf6d3a3868595c8bcefe556e34ecb16d4 (patch) | |
tree | a69263653227caf0c5cb296c50eba0554fb0c6e0 /src/kernel | |
parent | 686236f374b7b60a13bf58a26b83c53f53369267 (diff) | |
download | tqt3-85e2ff9cf6d3a3868595c8bcefe556e34ecb16d4.tar.gz tqt3-85e2ff9cf6d3a3868595c8bcefe556e34ecb16d4.zip |
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.
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/qmetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/qmetaobject.cpp b/src/kernel/qmetaobject.cpp index 75bd9b5a7..df59af7fe 100644 --- a/src/kernel/qmetaobject.cpp +++ b/src/kernel/qmetaobject.cpp @@ -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; |