diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-09-30 12:59:52 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-09-30 12:59:52 +0900 |
commit | 4e3703a45fcff6433441482892cfb14fd9bd8a7c (patch) | |
tree | c7efb045bc092b95d374db257a1e757310a82dee /lib/events/accountdataevents.h | |
parent | 547170c8eb03f3b8477f131724e028ef38ed16fa (diff) | |
download | libquotient-4e3703a45fcff6433441482892cfb14fd9bd8a7c.tar.gz libquotient-4e3703a45fcff6433441482892cfb14fd9bd8a7c.zip |
toJson(TagRecord): don't dump order if there's none
Diffstat (limited to 'lib/events/accountdataevents.h')
-rw-r--r-- | lib/events/accountdataevents.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h index 792ea7f7..d1c1abc8 100644 --- a/lib/events/accountdataevents.h +++ b/lib/events/accountdataevents.h @@ -63,7 +63,7 @@ namespace QMatrixClient inline QJsonValue toJson(const TagRecord& rec) { QJsonObject o; - addParam(o, QStringLiteral("order"), rec.order); + addParam<IfNotEmpty>(o, QStringLiteral("order"), rec.order); return o; } |