aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppPresence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppPresence.cpp')
-rw-r--r--src/base/QXmppPresence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppPresence.cpp b/src/base/QXmppPresence.cpp
index 79e98dcf..39db0ef6 100644
--- a/src/base/QXmppPresence.cpp
+++ b/src/base/QXmppPresence.cpp
@@ -290,7 +290,7 @@ void QXmppPresence::toXml(QXmlStreamWriter *xmlWriter) const
const QString show = presence_shows[d->availableStatusType];
if (!show.isEmpty())
helperToXmlAddTextElement(xmlWriter, "show", show);
- if (d->statusText.isEmpty())
+ if (!d->statusText.isEmpty())
helperToXmlAddTextElement(xmlWriter, "status", d->statusText);
if (d->priority != 0)
helperToXmlAddTextElement(xmlWriter, "priority", QString::number(d->priority));