diff options
-rw-r--r-- | src/app.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/app.cpp b/src/app.cpp index 93d827f..dca0e74 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -524,7 +524,15 @@ void App::allocateWindowResource(char const *event, char const *drawing_name, if (nullptr != new_area) { json_object_object_add(json_in, "area", json_object_new_string(new_area)); } - rm::g_new_role = std::string(new_role); // TODO: workaround + + // TODO: workaround + if (nullptr != new_role) { + rm::g_new_role = std::string(new_role); + } + else { + rm::g_new_role = std::string(""); + } + this->pm_.inputEvent(json_in); // Release json_object |