ui: Fixed graph view to not recenter on active node when clicking edge

This commit is contained in:
Eberhard Graether
2016-11-29 09:59:26 +01:00
parent 949f738b3f
commit 46078097d7
+5 -5
View File
@@ -271,6 +271,11 @@ void QtGraphView::doRebuildGraph(
m_graph = graph;
}
if (!params.centerActiveNode)
{
m_activeNode.reset();
}
if (params.animatedTransition)
{
createTransition();
@@ -279,11 +284,6 @@ void QtGraphView::doRebuildGraph(
{
switchToNewGraphData();
}
if (!params.centerActiveNode)
{
m_activeNode.reset();
}
}
void QtGraphView::doClear()