[vlmc-devel] Project: Fix initial project loading
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 1 23:16:24 CEST 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr 1 23:58:28 2014 +0300| [c105e79e5771245baa5d690fb50fa330ce0d01a0] | committer: Hugo Beauzée-Luyssen
Project: Fix initial project loading
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c105e79e5771245baa5d690fb50fa330ce0d01a0
---
src/Project/Project.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
index f436756..b5333c2 100644
--- a/src/Project/Project.cpp
+++ b/src/Project/Project.cpp
@@ -204,7 +204,12 @@ Project::connectComponents()
bool
Project::closeProject()
{
- Q_ASSERT( m_projectFile != NULL );
+ /*
+ * This (project file being NULL) is only expected to happen when we load the first
+ * project from the wizard, or through the command line parameter
+ */
+ if ( m_projectFile == NULL )
+ return true;
if ( m_projectManagerUi != NULL )
{
IProjectUiCb::SaveMode mode = m_projectManagerUi->shouldSaveBeforeClose();
More information about the Vlmc-devel
mailing list