summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-12-27 22:31:32 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-12-27 22:31:32 (GMT)
commit77900ebd910635a454b442f04275b8d6db60ab4a (patch)
tree6cea3e4a29bd25eca3a03b51de54318fd925fea1 /src/dbus
parent1a1eeba0086d764474546da7fe443bf210d4d974 (diff)
parent33985fb2020884955ed44db825ace7cf0ec32bbc (diff)
downloadQt-77900ebd910635a454b442f04275b8d6db60ab4a.zip
Qt-77900ebd910635a454b442f04275b8d6db60ab4a.tar.gz
Qt-77900ebd910635a454b442f04275b8d6db60ab4a.tar.bz2
Merge branch '4.5' into 4.6-staging
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusmarshaller.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dbus/qdbusmarshaller.cpp b/src/dbus/qdbusmarshaller.cpp
index d732ad0..28cec7d 100644
--- a/src/dbus/qdbusmarshaller.cpp
+++ b/src/dbus/qdbusmarshaller.cpp
@@ -387,7 +387,6 @@ bool QDBusMarshaller::appendVariantInternal(const QVariant &arg)
switch (*signature) {
#ifdef __OPTIMIZE__
case DBUS_TYPE_BYTE:
- case DBUS_TYPE_BOOLEAN:
case DBUS_TYPE_INT16:
case DBUS_TYPE_UINT16:
case DBUS_TYPE_INT32:
@@ -397,6 +396,9 @@ bool QDBusMarshaller::appendVariantInternal(const QVariant &arg)
case DBUS_TYPE_DOUBLE:
qIterAppend(&iterator, ba, *signature, arg.constData());
return true;
+ case DBUS_TYPE_BOOLEAN:
+ append( arg.toBool() );
+ return true;
#else
case DBUS_TYPE_BYTE:
append( qvariant_cast<uchar>(arg) );