diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-12 22:43:17 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-12 22:43:17 +0200 |
| commit | b5df32d8c9b3ce2f866f0fae729b08d0976553a6 (patch) | |
| tree | 09a5c1c07d08e116ded578f4e5538ae8b4cab1d6 /examples/GuiClient/mainDialog.cpp | |
| parent | 2e3e1411bfce80d30788fcbdf20d0294ba7b5ad4 (diff) | |
| download | qxmpp-b5df32d8c9b3ce2f866f0fae729b08d0976553a6.tar.gz | |
minimum maintenance to get guiclient to compile
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
| -rw-r--r-- | examples/GuiClient/mainDialog.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp index c0b87469..0312fc48 100644 --- a/examples/GuiClient/mainDialog.cpp +++ b/examples/GuiClient/mainDialog.cpp @@ -389,10 +389,7 @@ void mainDialog::presenceTypeChanged(QXmppPresence::Type presenceType) void mainDialog::presenceStatusTypeChanged(QXmppPresence::Status::Type statusType) { QXmppPresence presence = m_xmppClient.clientPresence(); - if(statusType == QXmppPresence::Status::Offline) - presence.setType(QXmppPresence::Unavailable); - else - presence.setType(QXmppPresence::Available); + presence.setType(QXmppPresence::Available); presence.status().setType(statusType); addPhotoHash(presence); m_xmppClient.setClientPresence(presence); |
