suicide assertion added
This commit is contained in:
parent
126fb5b9bd
commit
3c8cea78ee
@ -543,6 +543,14 @@ QskControl::QskControl( QQuickItem* parent )
|
|||||||
|
|
||||||
QskControl::~QskControl()
|
QskControl::~QskControl()
|
||||||
{
|
{
|
||||||
|
#if defined( QT_DEBUG )
|
||||||
|
if ( auto w = window() )
|
||||||
|
{
|
||||||
|
// to catch suicide situations as a result of mouse clicks
|
||||||
|
Q_ASSERT( this != w->mouseGrabberItem() );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( qskRegistry )
|
if ( qskRegistry )
|
||||||
qskRegistry->remove( this );
|
qskRegistry->remove( this );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user