diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-03-23 16:34:32 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-05-12 10:29:41 +0000 |
commit | 668a52879dcb5049f9bbe4014e2b24bc4c1ba9b5 (patch) | |
tree | e5ce66e92fcfc2a06da733d4f969d94118a091ca | |
parent | 325e0323aefa0b45400a58e8a6883126ecdc4722 (diff) |
QFrameGraph: small fix
Check if the FrameGraph root node has a parent, if not set it to trigger a
NodeCreated notification.
Then set it as the current activeFrameGraph.
Change-Id: Ife652391bc8520b42d35a8469b55bf067e1e08a2
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/render/frontend/framegraph-components/qframegraph.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/render/frontend/framegraph-components/qframegraph.cpp b/src/render/frontend/framegraph-components/qframegraph.cpp index 4f44703b0..4d269c2cd 100644 --- a/src/render/frontend/framegraph-components/qframegraph.cpp +++ b/src/render/frontend/framegraph-components/qframegraph.cpp @@ -101,15 +101,12 @@ void QFrameGraph::setActiveFrameGraph(QFrameGraphNode *activeFrameGraph) { Q_D(QFrameGraph); if (activeFrameGraph != d->m_activeFrameGraph) { - d->m_activeFrameGraph = activeFrameGraph; - emit activeFrameGraphChanged(); if (!activeFrameGraph->parent()) activeFrameGraph->setParent(this); - if (d->m_changeArbiter != Q_NULLPTR) { - // TO DO : Add QChangeArbiterNotification - } + d->m_activeFrameGraph = activeFrameGraph; + emit activeFrameGraphChanged(); } } |