Fix handling of struct types in arrays

pull/2/head
Timothy Pearson 12 years ago
parent 48ab18c6ef
commit b6aba4c408

@ -227,8 +227,18 @@ static TQValueList<TQT_DBusData> 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;
}
}

Loading…
Cancel
Save