Qt5 incompatibility fixed

This commit is contained in:
Uwe Rathmann 2024-02-26 15:49:06 +01:00
parent 0a651782ba
commit 6a547e4698
1 changed files with 5 additions and 3 deletions

View File

@ -133,11 +133,13 @@ void QskModelObjectBinder::bindObject(
void QskModelObjectBinder::unbindObject( QObject* object )
{
auto it = m_data->bindings.constFind( object );
if ( it != m_data->bindings.constEnd() )
auto& bindings = m_data->bindings;
auto it = bindings.find( object );
if ( it != bindings.end() )
{
qskEnableConnections( object, this, false );
m_data->bindings.erase( it );
bindings.erase( it );
}
}