From e29f018f66d9b8aefebe675d8e58372be5b31cd6 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 5 Jun 2007 17:27:39 +0000 Subject: [PATCH] - 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 --- checkin_notes | 7 +++++++ lib/gui_rpc_client_ops.C | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 58f73ef177..7f20510f16 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5771,3 +5771,10 @@ Rom 4 June 2007 client/ configure.ac 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 diff --git a/lib/gui_rpc_client_ops.C b/lib/gui_rpc_client_ops.C index 197965d4a3..c300af6e89 100644 --- a/lib/gui_rpc_client_ops.C +++ b/lib/gui_rpc_client_ops.C @@ -1600,12 +1600,16 @@ int RPC_CLIENT::project_op(PROJECT& project, const char* op) { tag = "project_update"; } else if (!strcmp(op, "suspend")) { tag = "project_suspend"; + project.suspended_via_gui = true; } else if (!strcmp(op, "resume")) { tag = "project_resume"; + project.suspended_via_gui = false; } else if (!strcmp(op, "allowmorework")) { - tag = "project_allowmorework"; + tag = "project_allowmorework"; + project.dont_request_more_work = false; } else if (!strcmp(op, "nomorework")) { tag = "project_nomorework"; + project.dont_request_more_work = true; } else { return -1; } @@ -1887,8 +1891,10 @@ int RPC_CLIENT::result_op(RESULT& result, const char* op) { tag = "abort_result"; } else if (!strcmp(op, "suspend")) { tag = "suspend_result"; + result.suspended_via_gui = true; } else if (!strcmp(op, "resume")) { tag = "resume_result"; + result.suspended_via_gui = false; } else { return -1; }