Close project before creating new one.
This commit is contained in:
parent
767aa44b7c
commit
c0803df843
|
@ -144,6 +144,8 @@ Project::open ( const char *name )
|
||||||
bool
|
bool
|
||||||
Project::create ( const char *name, const char *template_name )
|
Project::create ( const char *name, const char *template_name )
|
||||||
{
|
{
|
||||||
|
close();
|
||||||
|
|
||||||
if ( exists( name ) )
|
if ( exists( name ) )
|
||||||
{
|
{
|
||||||
WARNING( "Project already exists" );
|
WARNING( "Project already exists" );
|
||||||
|
@ -165,7 +167,5 @@ Project::create ( const char *name, const char *template_name )
|
||||||
|
|
||||||
/* TODO: copy template */
|
/* TODO: copy template */
|
||||||
|
|
||||||
close();
|
|
||||||
|
|
||||||
return open( name );
|
return open( name );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue