From 582be1f6e654b7e2dad76a466a562f5a4dab3294 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 11 Oct 2010 10:23:22 +0000 Subject: Data Forms XEP specifies that we should use "text single" as the default field type --- src/QXmppDataForm.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/QXmppDataForm.cpp') 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(-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 */ -- cgit v1.2.3