mirror of https://github.com/BOINC/boinc.git
- 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:
parent
2e85107ff6
commit
4e74f480c7
|
@ -2628,3 +2628,11 @@ David 7 Apr 2010
|
||||||
html/ops/
|
html/ops/
|
||||||
manage_special_users.php
|
manage_special_users.php
|
||||||
profile_screen_form.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
|
||||||
|
|
|
@ -604,11 +604,15 @@ static void handle_network_available(char*, MIOFILE& fout) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_get_project_init_status(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()) {
|
for (unsigned i=0; i<gstate.projects.size(); i++) {
|
||||||
gstate.project_init.remove();
|
PROJECT* p = gstate.projects[i];
|
||||||
msg_printf(0, MSG_INFO, "Already attached - deleting %s", PROJECT_INIT_FILENAME);
|
if (!strcmp(p->master_url, gstate.project_init.url)) {
|
||||||
|
gstate.project_init.remove();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fout.printf(
|
fout.printf(
|
||||||
|
|
Loading…
Reference in New Issue