1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

Use strongRef where strongRef requested

This commit is contained in:
Uwe L. Korn
2013-06-26 12:10:00 +02:00
committed by Michael Zanetti
parent 04e5b338c4
commit a381c5e3f1

View File

@@ -50,7 +50,7 @@ ConnectionManager::getManagerForNodeId( const QString &nodeid )
// There exists no connection for this nodeid
QSharedPointer< ConnectionManager > manager( new ConnectionManager( nodeid ) );
manager->setWeakRef( manager.toWeakRef() );
connectionManagers.insert( nodeid, manager.toWeakRef() );
connectionManagers.insert( nodeid, manager );
return manager;
}