diff options
author | Deepak Bhole <[email protected]> | 2011-12-22 16:15:54 -0500 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2011-12-22 16:15:54 -0500 |
commit | 25dbb545beabe08570ea17c461e218864c242627 (patch) | |
tree | 8053c4a70e8662bbd0358a121a141f00e15482eb /plugin/icedteanp/IcedTeaPluginRequestProcessor.cc | |
parent | aaeaeeeff072fdf1c1a5eb7c893b655beb16207b (diff) |
Use correct response parameter when returning array member vs member itself
Patch from Thomas Meyer <[email protected]>
Diffstat (limited to 'plugin/icedteanp/IcedTeaPluginRequestProcessor.cc')
-rw-r--r-- | plugin/icedteanp/IcedTeaPluginRequestProcessor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc index 736eb11..a5937d2 100644 --- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc +++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc @@ -556,11 +556,11 @@ PluginRequestProcessor::sendMember(std::vector<std::string*>* message_parts) createJavaObjectFromVariant(instance, *member_ptr, &result_id); IcedTeaPluginUtilities::constructMessagePrefix(0, reference, &response); - if (*(message_parts->at(2)) == "GetSlot") + if (*(message_parts->at(4)) == "GetSlot") { - response.append(" JavaScriptGetMember "); - } else { response.append(" JavaScriptGetSlot "); + } else { + response.append(" JavaScriptGetMember "); } response.append(result_id.c_str()); plugin_to_java_bus->post(response.c_str()); |