- client: revert [21035]; remove project_init.xml only if

attached to the project it specifies
     (requested by Kevin Reed)


svn path=/trunk/boinc/; revision=21144
This commit is contained in:
David Anderson 2010-04-08 03:30:57 +00:00
parent 2e85107ff6
commit 4e74f480c7
2 changed files with 16 additions and 4 deletions

View File

@ -2628,3 +2628,11 @@ David 7 Apr 2010
html/ops/
manage_special_users.php
profile_screen_form.php
David 7 Apr 2010
- client: revert [21035]; remove project_init.xml only if
attached to the project it specifies
(requested by Kevin Reed)
client/
gui_rpc_server_ops.cpp

View File

@ -604,11 +604,15 @@ static void handle_network_available(char*, MIOFILE& fout) {
}
static void handle_get_project_init_status(char*, MIOFILE& fout) {
// If we're already attached to a project, delete the file.
// If we're already attached to the project specified in the
// project init file, delete the file.
//
if (gstate.projects.size()) {
gstate.project_init.remove();
msg_printf(0, MSG_INFO, "Already attached - deleting %s", PROJECT_INIT_FILENAME);
for (unsigned i=0; i<gstate.projects.size(); i++) {
PROJECT* p = gstate.projects[i];
if (!strcmp(p->master_url, gstate.project_init.url)) {
gstate.project_init.remove();
break;
}
}
fout.printf(