diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2018-09-28 11:30:12 +0300 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2018-09-28 08:54:34 +0000 |
commit | b2489b15bb39e126bba83a51e4e2437032dfb3c3 (patch) | |
tree | 2bb3c3d358c08e778f3ea981015f2ac2c69760e7 /src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | |
parent | dd29b6d3ee6e80196c6d11607fa87a55bbdf0969 (diff) |
Correct refreshing renderables in the inspector
- Corrected refreshing sub-presentation id(s) in the inspector when the
project file is edited externally.
- removed 1 method.
Change-Id: Ia039e313e846ce4edbc34799a4123b45d7b52064
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp')
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp index 0aa632d6..b28af190 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp @@ -174,7 +174,9 @@ void InspectorControlView::onFilesChanged( } } else if (record.m_ModificationType == Q3DStudio::FileModificationType::Modified && record.m_File.toQString() - == g_StudioApp.GetCore()->GetDoc()->GetDocumentUIAFile(false)) { + == g_StudioApp.GetCore()->getProjectFile().getProjectFilePath()) { + g_StudioApp.GetCore()->getProjectFile().loadSubpresentationsAndDatainputs( + g_StudioApp.m_subpresentations, g_StudioApp.m_dataInputDialogItems); m_inspectorControlModel->refreshRenderables(); } } |