aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/GuiClient/mainDialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp
index 5d2cf70f..e9adfce2 100644
--- a/examples/GuiClient/mainDialog.cpp
+++ b/examples/GuiClient/mainDialog.cpp
@@ -281,7 +281,9 @@ void mainDialog::presenceTypeChanged(QXmppPresence::Type presenceType)
}
else
{
- m_xmppClient.setClientPresence(presenceType);
+ QXmppPresence newPresence = m_xmppClient.clientPresence();
+ newPresence.setType(presenceType);
+ m_xmppClient.setClientPresence(newPresence);
}
m_statusWidget.setStatusText(
presenceToStatusText(m_xmppClient.clientPresence()));