ladishd: fix unload of not loaded (just created) projects. Fix for #148

This commit is contained in:
Nedko Arnaudov 2010-12-27 03:19:10 +02:00
parent 7f17fea6ea
commit 53dc55330d
1 changed files with 4 additions and 0 deletions

View File

@ -380,6 +380,10 @@ ladish_room_save_project(
room_ptr->project_name = old_project_name;
room_ptr->project_dir = old_project_dir;
}
else
{
room_ptr->project_state = ROOM_PROJECT_STATE_LOADED;
}
exit:
if (project_name != NULL && project_name != room_ptr->project_name)