From 3587b487ddf7adce369b2ac406308b814f75b4cb Mon Sep 17 00:00:00 2001 From: malte_langkabel Date: Tue, 23 Jun 2015 16:36:39 +0200 Subject: [PATCH] ui: Fixed animation crash * Fixed crash that occurred when resetting the current animation in the QtGraphView. --- src/app/qt/view/QtGraphView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/qt/view/QtGraphView.cpp b/src/app/qt/view/QtGraphView.cpp index 60882a54..8671df6e 100644 --- a/src/app/qt/view/QtGraphView.cpp +++ b/src/app/qt/view/QtGraphView.cpp @@ -115,8 +115,6 @@ void QtGraphView::finishedTransition() view->setInteractive(true); switchToNewGraphData(); - - m_transition.reset(); } void QtGraphView::switchToNewGraphData() @@ -174,7 +172,7 @@ void QtGraphView::doRebuildGraph( const std::vector& nodes, const std::vector& edges ){ - if (m_transition) + if (m_transition && m_transition->currentTime() < m_transition->totalDuration()) { m_transition->stop(); switchToNewGraphData();