ENH:Don't call the interface when task id is incorrect

JIRA:STUDIO-4322
Change-Id: I6fc1dc7379cba0702927e30cab0aa271074c59da
This commit is contained in:
hu.wang authored and Lane.Wei committed 2023-11-01 09:33:21 +08:00
1 parent 378a0a9d75
commit 9f83f6deff
2 files changed
+5 -4

No files matched your search

+3 -1
View File
@@ -2636,7 +2636,9 @@ void StatusPanel::update_model_info()
curr_model_task = new BBLModelTask();
curr_model_task->task_id = curr_task->task_id;
request_model_info_flag = true;
wxGetApp().getAgent()->get_subtask(curr_model_task, get_subtask_fn);
if (!curr_model_task->task_id.empty() && curr_model_task->task_id.compare("0") != 0) {
wxGetApp().getAgent()->get_subtask(curr_model_task, get_subtask_fn);
}
}
}
}