From b5df32d8c9b3ce2f866f0fae729b08d0976553a6 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 12 Sep 2012 22:43:17 +0200 Subject: minimum maintenance to get guiclient to compile --- examples/GuiClient/mainDialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/GuiClient/mainDialog.cpp') 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); -- cgit v1.2.3