diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-08-31 18:03:16 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-09-04 06:57:20 +0000 |
commit | 3ac8b4d150def7f0ce182f7b53523201478147d7 (patch) | |
tree | ecb71ed06cad3eb725f9c5e4fe64c4a5e90538fb /src/Authoring/Studio/MainFrm.cpp | |
parent | 478749a49cf1e320455a4c936a9b6c0e7e6c5288 (diff) |
Allow opening non-project .uip files with editor
If .uia is not found, .uip is still opened and can be used.
If something is done that needs to write to .uia, then .uia is
created.
Task-number: QT3DS-2178
Change-Id: If915c26da686d06f043e0409931971a707a434a2
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Janne Kangas <janne.kangas@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/MainFrm.cpp')
-rw-r--r-- | src/Authoring/Studio/MainFrm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Authoring/Studio/MainFrm.cpp b/src/Authoring/Studio/MainFrm.cpp index 7966d81f..e208b3ed 100644 --- a/src/Authoring/Studio/MainFrm.cpp +++ b/src/Authoring/Studio/MainFrm.cpp @@ -388,6 +388,8 @@ void CMainFrame::OnCreate() m_ui->action_Revert->setEnabled(false); m_ui->actionImportAssets->setEnabled(false); m_ui->actionRemote_Preview->setEnabled(false); + m_ui->action_New_Presentation->setEnabled(false); + m_ui->actionData_Inputs->setEnabled(false); #if 1 // TODO: Hidden until UX decision is made if these buttons are needed at all or not m_ui->actionPan_Tool->setVisible(false); @@ -426,6 +428,8 @@ void CMainFrame::OnNewPresentation() m_ui->action_Connect_to_Device->setEnabled(true); m_ui->action_Revert->setEnabled(true); m_ui->actionImportAssets->setEnabled(true); + m_ui->action_New_Presentation->setEnabled(true); + m_ui->actionData_Inputs->setEnabled(true); // Clear data input list and sub-presentation list g_StudioApp.m_subpresentations.clear(); |