From c0803df843fe5477757bceea1687b958dfae8717 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 6 May 2008 19:58:34 -0500 Subject: [PATCH] Close project before creating new one. --- Timeline/Project.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Timeline/Project.C b/Timeline/Project.C index 331745f..1f2ac89 100644 --- a/Timeline/Project.C +++ b/Timeline/Project.C @@ -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 ); }