From 46078097d7a895c17764bcaca746776a8a6011c8 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Tue, 29 Nov 2016 09:59:26 +0100 Subject: [PATCH] ui: Fixed graph view to not recenter on active node when clicking edge --- src/lib_gui/qt/view/QtGraphView.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib_gui/qt/view/QtGraphView.cpp b/src/lib_gui/qt/view/QtGraphView.cpp index f0f6f594..6307648e 100644 --- a/src/lib_gui/qt/view/QtGraphView.cpp +++ b/src/lib_gui/qt/view/QtGraphView.cpp @@ -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()