ui: Fixed scrolling to active symbol when clicking on active graph view node

This commit is contained in:
Eberhard Graether
2017-02-22 04:58:54 +01:00
parent 224f0b05f9
commit a0d3bd272c
2 changed files with 6 additions and 2 deletions
-1
View File
@@ -1,4 +1,3 @@
Settings.cpp WARNING: File for Settings not found: data/TestSettings.xml
Token.cpp ERROR: Location Id was not referenced by this Token.
Node.cpp WARNING: Cannot change NodeType after it was already set from namespace to class
Edge.cpp ERROR: Nodes are not plain copies.
@@ -130,6 +130,11 @@ void CodeController::handleMessage(MessageActivateTokens* message)
else if (message->keepContent())
{
view->showActiveTokenIds(activeTokenIds);
if (m_scrollToDefinition)
{
getView()->scrollToDefinition(true);
m_scrollToDefinition = false;
}
}
else
{
@@ -262,7 +267,7 @@ void CodeController::handleMessage(MessageDeactivateEdge* message)
{
if (message->scrollToDefinition)
{
getView()->scrollToDefinition(true);
m_scrollToDefinition = true;
}
}