Fixed zone loading

pull/143/head
parent ea3367b764
commit f632a28ca7

@ -1032,8 +1032,8 @@ struct MainWindow::Result<string> MainWindow::wrapper_call(string cmd) {
if ((response.find("(null)") == std::string::npos) && (response.length() != 0 )) {
if (response.find("=") != std::string::npos) {
if (response.find("\n") != std::string::npos) {
response = response.substr(response.find("=")+1,response.length());
response = response.substr(0,response.find("\n"));
response = response.substr(response.find("=")+2,response.length());
response = response.substr(0,response.find("\n")-1);
obj_result.response = response;
obj_result.error = 0;
}

Loading…
Cancel
Save