ensure nodeview is unset when project closes

This commit is contained in:
itsmattkc
2021-02-24 22:15:12 +11:00
parent a122e34029
commit 72dd80c90c
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -362,6 +362,11 @@ void MainWindow::ProjectClose(Project *p)
RemoveProjectPanel(panel);
}
}
// Close project from NodeView
if (node_panel_->GetGraph() == p) {
node_panel_->SetGraph(nullptr);
}
}
void MainWindow::SetApplicationProgressStatus(ProgressStatus status)