Commit ea526d92 authored by Frédéric Larue's avatar Frédéric Larue

Default application view mode restored when the last open project is closed.

parent daf23e16
...@@ -637,6 +637,10 @@ bool UIMainWindow::closeCurrentProject() ...@@ -637,6 +637,10 @@ bool UIMainWindow::closeCurrentProject()
delete m_CurrentProject->project; delete m_CurrentProject->project;
delete m_CurrentProject; m_CurrentProject = NULL; delete m_CurrentProject; m_CurrentProject = NULL;
ui->comboProject->removeItem( ui->comboProject->currentIndex() ); ui->comboProject->removeItem( ui->comboProject->currentIndex() );
// Last project closed? Restore the default application view mode.
if( !m_CurrentProject )
m_CurrentViewer->init( DISPLAY_DOF_3D );
} }
return true; return true;
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