From 3aaa951b411904cc0118b5209db9b008cd219a11 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 18 Apr 2013 17:37:41 +0200 Subject: [PATCH] * Set a contact id when creating peerinfo for zeroconf in Servent. --- src/libtomahawk/network/Servent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libtomahawk/network/Servent.cpp b/src/libtomahawk/network/Servent.cpp index a0aee63ee..457fe84aa 100644 --- a/src/libtomahawk/network/Servent.cpp +++ b/src/libtomahawk/network/Servent.cpp @@ -910,6 +910,7 @@ Servent::claimOffer( ControlConnection* cc, const QString &nodeid, const QString // this is terrible, actually there should be a way to let this be created by the zeroconf plugin // because this way we rely on the ip being used as id in two totally different parts of the code Tomahawk::peerinfo_ptr peerInfo = Tomahawk::PeerInfo::get( account->sipPlugin(), peer.toString(), Tomahawk::PeerInfo::AutoCreate ); + peerInfo->setContactId( peer.toString() ); peerInfoDebug( peerInfo ); conn->addPeerInfo( peerInfo ); return conn;