Close project before creating new one.

This commit is contained in:
Jonathan Moore Liles 2008-05-06 19:58:34 -05:00
parent 767aa44b7c
commit c0803df843
1 changed files with 2 additions and 2 deletions

View File

@ -144,6 +144,8 @@ Project::open ( const char *name )
bool
Project::create ( const char *name, const char *template_name )
{
close();
if ( exists( name ) )
{
WARNING( "Project already exists" );
@ -165,7 +167,5 @@ Project::create ( const char *name, const char *template_name )
/* TODO: copy template */
close();
return open( name );
}