aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/mainDialog.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:58:44 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:58:44 +0000
commit45cc45feb3c6f2f90def46c1e1d1dda6de72bdc8 (patch)
treeb0d6c38dd9aa49a9a41a3dfa7c415619d95a8ced /examples/GuiClient/mainDialog.cpp
parent702bada8ef57115a2dfccd9b58727f2afeee09ba (diff)
downloadqxmpp-45cc45feb3c6f2f90def46c1e1d1dda6de72bdc8.tar.gz
remove setClientPresence warning
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
-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()));