aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */