diff options
Diffstat (limited to 'source/QXmppClient.cpp')
| -rw-r--r-- | source/QXmppClient.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/QXmppClient.cpp b/source/QXmppClient.cpp index 13c89d21..eac98eda 100644 --- a/source/QXmppClient.cpp +++ b/source/QXmppClient.cpp @@ -43,6 +43,7 @@ QXmppClient::QXmppClient(QObject *parent) { m_logger = QXmppLogger::getLogger(); m_stream = new QXmppStream(this); + m_roster = new QXmppRoster(m_stream); bool check = connect(m_stream, SIGNAL(messageReceived(const QXmppMessage&)), this, SIGNAL(messageReceived(const QXmppMessage&))); @@ -243,7 +244,7 @@ void QXmppClient::disconnect() QXmppRoster& QXmppClient::getRoster() { - return m_stream->getRoster(); + return *m_roster; } /// Utility function to send message to all the resources associated with the |
