diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 96cea15d..c56d9121 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -3475,6 +3475,10 @@ void MainWindow::updateProjectView() mProjectProxyModel->sort(0); connect(mProject->model(), &ProjectModel::dataChanged, this, &MainWindow::invalidateProjectProxyModel); + connect(mProject->model(), &ProjectModel::rowsRemoved, + this, &MainWindow::invalidateProjectProxyModel); + connect(mProject->model(), &ProjectModel::rowsInserted, + this, &MainWindow::invalidateProjectProxyModel); connect(mProject->model(), &QAbstractItemModel::modelReset, ui->projectView,&QTreeView::expandAll); } else