Skip to content

Commit

Permalink
QXmppDataForm: Fix with Qt6 QVariant::isNull() behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Oct 10, 2020
1 parent 947ad50 commit 8cfb21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/QXmppDataForm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ void QXmppDataForm::toXml(QXmlStreamWriter *writer) const
type == QXmppDataForm::Field::TextMultiField) {
for (const QString &value : field.value().toStringList())
helperToXmlAddTextElement(writer, "value", value);
} else if (!field.value().isNull()) {
} else if (!field.value().toString().isNull()) {
helperToXmlAddTextElement(writer, "value", field.value().toString());
}

Expand Down

0 comments on commit 8cfb21e

Please sign in to comment.