ui: Clear graph contents on overview (issue #609)

This commit is contained in:
Eberhard Graether
2018-08-24 13:54:53 +02:00
parent 01d5f23e8f
commit 1ba1b9f967
2 changed files with 3 additions and 5 deletions
@@ -36,10 +36,7 @@ void GraphController::handleMessage(MessageActivateAll* message)
{
TRACE("graph all");
m_activeNodeIds.clear();
m_activeEdgeIds.clear();
m_dummyGraphNodes.clear();
clear();
if (message->acceptedNodeTypes != NodeTypeSet::all())
{
+2 -1
View File
@@ -422,8 +422,9 @@ void QtGraphView::clear()
m_oldGraph.reset();
m_matchedNodes.clear();
});
getView()->scene()->clear();
});
}
void QtGraphView::focusTokenIds(const std::vector<Id>& focusedTokenIds)