diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-08 09:58:44 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-08 09:58:44 +0000 |
| commit | 45cc45feb3c6f2f90def46c1e1d1dda6de72bdc8 (patch) | |
| tree | b0d6c38dd9aa49a9a41a3dfa7c415619d95a8ced /examples/GuiClient/mainDialog.cpp | |
| parent | 702bada8ef57115a2dfccd9b58727f2afeee09ba (diff) | |
| download | qxmpp-45cc45feb3c6f2f90def46c1e1d1dda6de72bdc8.tar.gz | |
remove setClientPresence warning
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
| -rw-r--r-- | examples/GuiClient/mainDialog.cpp | 4 |
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()));
|
