project: reorder panels closing project
This commit is contained in:
@@ -341,6 +341,12 @@ void MainWindow::ProjectOpen(Project *p)
|
|||||||
|
|
||||||
void MainWindow::ProjectClose(Project *p)
|
void MainWindow::ProjectClose(Project *p)
|
||||||
{
|
{
|
||||||
|
// Close project from NodeParamView
|
||||||
|
param_panel_->CloseContextsBelongingToProject(p);
|
||||||
|
|
||||||
|
// Close project from NodeView
|
||||||
|
node_panel_->CloseContextsBelongingToProject(p);
|
||||||
|
|
||||||
// Close any nodes open in TimeBasedWidgets
|
// Close any nodes open in TimeBasedWidgets
|
||||||
foreach (PanelWidget* panel, PanelManager::instance()->panels()) {
|
foreach (PanelWidget* panel, PanelManager::instance()->panels()) {
|
||||||
TimeBasedPanel* tbp = dynamic_cast<TimeBasedPanel*>(panel);
|
TimeBasedPanel* tbp = dynamic_cast<TimeBasedPanel*>(panel);
|
||||||
@@ -368,12 +374,6 @@ void MainWindow::ProjectClose(Project *p)
|
|||||||
RemoveProjectPanel(panel);
|
RemoveProjectPanel(panel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close project from NodeView
|
|
||||||
node_panel_->CloseContextsBelongingToProject(p);
|
|
||||||
|
|
||||||
// Close project from NodeParamView
|
|
||||||
param_panel_->CloseContextsBelongingToProject(p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::SetApplicationProgressStatus(ProgressStatus status)
|
void MainWindow::SetApplicationProgressStatus(ProgressStatus status)
|
||||||
|
|||||||
Reference in New Issue
Block a user