Qt5 incompatibility fixed
This commit is contained in:
parent
0a651782ba
commit
6a547e4698
|
@ -133,11 +133,13 @@ void QskModelObjectBinder::bindObject(
|
||||||
|
|
||||||
void QskModelObjectBinder::unbindObject( QObject* object )
|
void QskModelObjectBinder::unbindObject( QObject* object )
|
||||||
{
|
{
|
||||||
auto it = m_data->bindings.constFind( object );
|
auto& bindings = m_data->bindings;
|
||||||
if ( it != m_data->bindings.constEnd() )
|
|
||||||
|
auto it = bindings.find( object );
|
||||||
|
if ( it != bindings.end() )
|
||||||
{
|
{
|
||||||
qskEnableConnections( object, this, false );
|
qskEnableConnections( object, this, false );
|
||||||
m_data->bindings.erase( it );
|
bindings.erase( it );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue