diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e715178..9d5e1cc 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -934,18 +934,22 @@ void MainWindow::getBlock() { QString property_value; - DEBUG("property = " << props.toObject()[property_name] ); + DEBUG("property " << property_name << "=" << props.toObject()[property_name] ); if (props.toObject()[property_name].isString()) { property_value = props.toObject()[property_name].toString(); } else if (props.toObject()[property_name].isDouble()) { property_value = QString::number( props.toObject()[property_name].toDouble(), 'f', 0); } else if (props.toObject()[property_name].isBool()) { property_value = props.toObject()[property_name].toBool() ? "true" : "false" ; + } else if (props.toObject()[property_name].isArray()) { + DEBUG( property_name << " is an array"); + //property_value = QString( props.toObject()[property_name][0] ); // TODO: this is only the first tx + } else if (props.toObject()[property_name].isObject()) { + DEBUG( property_name << " is an object"); } propsList.append( - QPair( property_name, - property_value ) + QPair( property_name, property_value ) ); }