mirror of https://github.com/BOINC/boinc.git
- MGR: Bug Fix for suspend/resume operations not updating
in the UI after the user selected operation. lib/ gui_rpc_client_ops.C svn path=/trunk/boinc/; revision=12823
This commit is contained in:
parent
b4f116bbd1
commit
e29f018f66
|
@ -5771,3 +5771,10 @@ Rom 4 June 2007
|
||||||
client/
|
client/
|
||||||
configure.ac
|
configure.ac
|
||||||
version.h
|
version.h
|
||||||
|
|
||||||
|
Rom 5 June 2007
|
||||||
|
- MGR: Bug Fix for suspend/resume operations not updating
|
||||||
|
in the UI after the user selected operation.
|
||||||
|
|
||||||
|
lib/
|
||||||
|
gui_rpc_client_ops.C
|
||||||
|
|
|
@ -1600,12 +1600,16 @@ int RPC_CLIENT::project_op(PROJECT& project, const char* op) {
|
||||||
tag = "project_update";
|
tag = "project_update";
|
||||||
} else if (!strcmp(op, "suspend")) {
|
} else if (!strcmp(op, "suspend")) {
|
||||||
tag = "project_suspend";
|
tag = "project_suspend";
|
||||||
|
project.suspended_via_gui = true;
|
||||||
} else if (!strcmp(op, "resume")) {
|
} else if (!strcmp(op, "resume")) {
|
||||||
tag = "project_resume";
|
tag = "project_resume";
|
||||||
|
project.suspended_via_gui = false;
|
||||||
} else if (!strcmp(op, "allowmorework")) {
|
} else if (!strcmp(op, "allowmorework")) {
|
||||||
tag = "project_allowmorework";
|
tag = "project_allowmorework";
|
||||||
|
project.dont_request_more_work = false;
|
||||||
} else if (!strcmp(op, "nomorework")) {
|
} else if (!strcmp(op, "nomorework")) {
|
||||||
tag = "project_nomorework";
|
tag = "project_nomorework";
|
||||||
|
project.dont_request_more_work = true;
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1887,8 +1891,10 @@ int RPC_CLIENT::result_op(RESULT& result, const char* op) {
|
||||||
tag = "abort_result";
|
tag = "abort_result";
|
||||||
} else if (!strcmp(op, "suspend")) {
|
} else if (!strcmp(op, "suspend")) {
|
||||||
tag = "suspend_result";
|
tag = "suspend_result";
|
||||||
|
result.suspended_via_gui = true;
|
||||||
} else if (!strcmp(op, "resume")) {
|
} else if (!strcmp(op, "resume")) {
|
||||||
tag = "resume_result";
|
tag = "resume_result";
|
||||||
|
result.suspended_via_gui = false;
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue