disconnect from enabledChanged in the destructor

This commit is contained in:
Uwe Rathmann 2019-01-09 10:08:31 +01:00
parent 2670715097
commit cbf6ef10b8

View File

@ -546,6 +546,10 @@ QskControl::~QskControl()
if ( qskRegistry ) if ( qskRegistry )
qskRegistry->remove( this ); qskRegistry->remove( this );
#if QT_VERSION < QT_VERSION_CHECK( 5, 10, 0 )
disconnect( this, &QQuickItem::enabledChanged, nullptr, nullptr );
#endif
/* /*
We set componentComplete to false, so that operations We set componentComplete to false, so that operations
that are triggered by detaching the item from its parent that are triggered by detaching the item from its parent