aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/mainDialog.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-12 22:43:17 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-12 22:43:17 +0200
commitb5df32d8c9b3ce2f866f0fae729b08d0976553a6 (patch)
tree09a5c1c07d08e116ded578f4e5538ae8b4cab1d6 /examples/GuiClient/mainDialog.cpp
parent2e3e1411bfce80d30788fcbdf20d0294ba7b5ad4 (diff)
downloadqxmpp-b5df32d8c9b3ce2f866f0fae729b08d0976553a6.tar.gz
minimum maintenance to get guiclient to compile
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
-rw-r--r--examples/GuiClient/mainDialog.cpp5
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);