From b6aba4c408a6db201af4a118725da2b8d8af0f84 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 25 Aug 2012 01:16:58 -0500 Subject: [PATCH] Fix handling of struct types in arrays --- tqdbusmarshall.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tqdbusmarshall.cpp b/tqdbusmarshall.cpp index 6180e2c..bfd572a 100644 --- a/tqdbusmarshall.cpp +++ b/tqdbusmarshall.cpp @@ -227,8 +227,18 @@ static TQValueList parseSignature(TQCString& signature) break; } default: - result << TQT_DBusData(); - signature = signature.mid(1); + TQT_DBusData::Type elementType = + qSingleTypeForDBusSignature(signature[0]); + if (elementType != TQT_DBusData::Invalid) + { + TQT_DBusDataList list(elementType); + result << TQT_DBusData::fromList(list); + signature = signature.mid(1); + } + else { + result << TQT_DBusData(); + signature = signature.mid(1); + } break; } }