projectpanel: select nodes when items are selected in the project explorer

This commit is contained in:
itsmattkc
2021-05-26 14:22:10 +10:00
parent cac165c62e
commit edd52dd811
6 changed files with 42 additions and 0 deletions
+10
View File
@@ -475,6 +475,15 @@ void MainWindow::TimelinePanelSelectionChanged(const QVector<Block *> &blocks)
}
}
void MainWindow::ProjectPanelSelectionChanged(const QVector<Node *> &nodes)
{
ProjectPanel *panel = static_cast<ProjectPanel *>(sender());
if (PanelManager::instance()->CurrentlyFocused(false) == panel) {
node_panel_->Select(nodes);
}
}
#ifdef Q_OS_LINUX
void MainWindow::ShowNouveauWarning()
{
@@ -564,6 +573,7 @@ ProjectPanel *MainWindow::AppendProjectPanel()
connect(panel, &PanelWidget::CloseRequested, this, &MainWindow::ProjectCloseRequested);
connect(panel, &ProjectPanel::ProjectNameChanged, this, &MainWindow::UpdateTitle);
connect(panel, &ProjectPanel::SelectionChanged, this, &MainWindow::ProjectPanelSelectionChanged);
return panel;
}