aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppDataForm.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-10-11 10:23:22 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-10-11 10:23:22 +0000
commit582be1f6e654b7e2dad76a466a562f5a4dab3294 (patch)
treef0b863246b2e4e822c4a4d6300978ce982fb088c /src/QXmppDataForm.cpp
parentc01388c759e39a9a3024d66db2817b860e5daa67 (diff)
downloadqxmpp-582be1f6e654b7e2dad76a466a562f5a4dab3294.tar.gz
Data Forms XEP specifies that we should use "text single" as the default field type
Diffstat (limited to 'src/QXmppDataForm.cpp')
-rw-r--r--src/QXmppDataForm.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/QXmppDataForm.cpp b/src/QXmppDataForm.cpp
index 5a2d425e..859f9a5f 100644
--- a/src/QXmppDataForm.cpp
+++ b/src/QXmppDataForm.cpp
@@ -209,7 +209,7 @@ void QXmppDataForm::parse(const QDomElement &element)
QXmppDataForm::Field field;
/* field type */
- QXmppDataForm::Field::Type type = static_cast<QXmppDataForm::Field::Type>(-1);
+ QXmppDataForm::Field::Type type = QXmppDataForm::Field::TextSingleField;
const QString typeStr = fieldElement.attribute("type");
struct field_type *ptr;
for (ptr = field_types; ptr->str; ptr++)
@@ -220,8 +220,6 @@ void QXmppDataForm::parse(const QDomElement &element)
break;
}
}
- if (type < 0)
- qWarning() << "Unknown field type" << typeStr;
field.setType(type);
/* field attributes */