diff options
author | Fushan Wen <[email protected]> | 2024-10-15 18:55:30 +0800 |
---|---|---|
committer | Fushan Wen <[email protected]> | 2024-10-25 09:47:44 +0800 |
commit | e1259868de420d3f421284382aa3eded1a33d37c (patch) | |
tree | 469864f1d735415c6c5d561acd743da3012a9f80 | |
parent | 812f79e75f2d6f2675c4b032f3a98610721e98de (diff) |
Document QVariantMap with invalid QVariant is disallowed in D-Bus arguments
Invalid QVariant is not allowed in arguments and Qt has a check for
that. However, if an argument is QVariantMap with invalid QVariant,
the application will crash when sending the message, which is an
expected behavior and needs to be documented.
Task-number: QTBUG-130038
Change-Id: I120785b8557afa089b6d12f82680c85505d110b9
Reviewed-by: Thiago Macieira <[email protected]>
-rw-r--r-- | src/dbus/qdbusmessage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbusmessage.cpp b/src/dbus/qdbusmessage.cpp index b89ab6a3988..98689ab0b4c 100644 --- a/src/dbus/qdbusmessage.cpp +++ b/src/dbus/qdbusmessage.cpp @@ -743,6 +743,9 @@ bool QDBusMessage::isInteractiveAuthorizationAllowed() const Sets the arguments that are going to be sent over D-Bus to \a arguments. Those will be the arguments to a method call or the parameters in the signal. + Note that QVariantMap with invalid QVariant as value is not allowed + in \a arguments. + \sa arguments() */ void QDBusMessage::setArguments(const QList<QVariant> &arguments) |