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
+3
View File
@@ -44,6 +44,7 @@ public:
void SetGraph(NodeGraph *graph, const QVector<Node*> &nodes)
{
node_view_->SetGraph(graph, nodes);
toolbar_->setEnabled(graph);
}
void ClearGraph()
@@ -125,6 +126,8 @@ private:
NodeView* node_view_;
NodeViewToolBar *toolbar_;
};
}