aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppBindIq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppBindIq.cpp')
-rw-r--r--src/base/QXmppBindIq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppBindIq.cpp b/src/base/QXmppBindIq.cpp
index 1e1bfa51..b0351980 100644
--- a/src/base/QXmppBindIq.cpp
+++ b/src/base/QXmppBindIq.cpp
@@ -81,7 +81,7 @@ void QXmppBindIq::parseElementFromChild(const QDomElement &element)
void QXmppBindIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
{
writer->writeStartElement("bind");
- writer->writeAttribute("xmlns", ns_bind);
+ writer->writeDefaultNamespace(ns_bind);
if (!m_jid.isEmpty())
helperToXmlAddTextElement(writer, "jid", m_jid);
if (!m_resource.isEmpty())