Commit c105e79e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Project: Fix initial project loading

parent 2563dd6d
...@@ -204,7 +204,12 @@ Project::connectComponents() ...@@ -204,7 +204,12 @@ Project::connectComponents()
bool bool
Project::closeProject() 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 ) if ( m_projectManagerUi != NULL )
{ {
IProjectUiCb::SaveMode mode = m_projectManagerUi->shouldSaveBeforeClose(); IProjectUiCb::SaveMode mode = m_projectManagerUi->shouldSaveBeforeClose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment