ui: Fixed scrolling to active symbol when clicking on active graph view node
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user