Commit 86f0713f authored by Frédéric Larue's avatar Frédéric Larue

Default application view mode restored when opening an existing project or creating a new one.

parent ea526d92
...@@ -498,7 +498,9 @@ void UIMainWindow::newProject() ...@@ -498,7 +498,9 @@ void UIMainWindow::newProject()
pHndl->project = onCreatingProject( projectName, &dlg.GetParameters() ); pHndl->project = onCreatingProject( projectName, &dlg.GetParameters() );
ui->comboProject->addItem( pHndl->project->Name(), QVariant::fromValue<void*>(pHndl) ); ui->comboProject->addItem( pHndl->project->Name(), QVariant::fromValue<void*>(pHndl) );
ui->comboProject->setCurrentIndex( ui->comboProject->count()-1 ); ui->comboProject->setCurrentIndex( ui->comboProject->count()-1 );
}
m_CurrentViewer->init( DISPLAY_DOF_3D );
}
} }
...@@ -2046,6 +2048,8 @@ bool UIMainWindow::loadProject( const QString& filename ) ...@@ -2046,6 +2048,8 @@ bool UIMainWindow::loadProject( const QString& filename )
updateCurrentProjectContent(); updateCurrentProjectContent();
updateRecentListEntry( filename ); updateRecentListEntry( filename );
m_CurrentViewer->init( DISPLAY_DOF_3D );
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
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