From fa9a7cc8c1a657642af21da3c6f45cacf96b17a3 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Fri, 17 Sep 2010 06:35:11 +0000 Subject: bugfix with changing the presence type --- examples/GuiClient/mainDialog.cpp | 2 ++ examples/GuiClient/statusWidget.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'examples/GuiClient') diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp index 8d68d338..5e463ef7 100644 --- a/examples/GuiClient/mainDialog.cpp +++ b/examples/GuiClient/mainDialog.cpp @@ -306,6 +306,8 @@ void mainDialog::presenceStatusTypeChanged(QXmppPresence::Status::Type statusTyp presence.setType(QXmppPresence::Available); presence.status().setType(statusType); m_xmppClient.setClientPresence(presence); + m_statusWidget.setStatusText( + presenceToStatusText(m_xmppClient.clientPresence())); } void mainDialog::avatarChanged(const QImage& image) diff --git a/examples/GuiClient/statusWidget.cpp b/examples/GuiClient/statusWidget.cpp index e3e47940..e6e9e1f9 100644 --- a/examples/GuiClient/statusWidget.cpp +++ b/examples/GuiClient/statusWidget.cpp @@ -69,6 +69,7 @@ void statusWidget::presenceMenuTriggered() if(action == actionAvailable) { emit presenceTypeChanged(QXmppPresence::Available); + emit presenceStatusTypeChanged(QXmppPresence::Status::Online); icon = "green"; } else if(action == actionBusy) -- cgit v1.2.3