ui: Prevent flickering of edges when going back after multiple edge activations

This commit is contained in:
Eberhard Graether
2019-01-10 22:56:14 +01:00
parent 3014dd35a8
commit 08dc7ec98b
4 changed files with 13 additions and 11 deletions
+1 -7
View File
@@ -518,7 +518,7 @@ void QtGraphView::scrollToValues(int xValue, int yValue)
m_scrollValues = Vec2i(xValue, yValue);
}
void QtGraphView::activateEdge(Id edgeId, bool centerOrigin)
void QtGraphView::activateEdge(Id edgeId)
{
m_onQtThread(
[=]()
@@ -541,12 +541,6 @@ void QtGraphView::activateEdge(Id edgeId, bool centerOrigin)
if (edge->getData() && edge->getData()->getId() == edgeId)
{
edge->setIsActive(true);
if (centerOrigin)
{
centerNode(edge->getOwner());
}
break;
}
}