nodeview: disable toolbar when null graph set

This commit is contained in:
itsmattkc
2021-07-23 23:35:08 -07:00
parent 1c8b1b6006
commit c356c241b9
3 changed files with 12 additions and 5 deletions
+4
View File
@@ -975,6 +975,10 @@ void NodeView::ShowContextMenu(const QPoint &pos)
void NodeView::CreateNodeSlot(QAction *action)
{
if (!graph_) {
return;
}
Node* new_node = NodeFactory::CreateFromMenuAction(action);
if (new_node) {