Bug in PubSub::Manager::subscribe?
From: Martin Cote <martin@xxxxxxxxxxxxx>
Date: Thu, 8 Oct 2009 16:05:59 +0200 (CEST)
Hello,

I've noticed something weird with the subscribe() function in the PubSub::Manager class. The doc mentions that passing an empty jid to this function will result in a self-subscription. However, the line 627 of pubsubmanager.cpp doesn't do that:

ps->setJID( jid );

Shouldn't it be:

ps->setJID( jid ? jid : m_parent->jid() );

like on line 602?

Thanks!
Martin Cote