修改测量分析历史记录删除BUG

This commit is contained in:
徐海 2026-05-27 10:07:23 +08:00
parent 1410ebfb7f
commit 1f750a6f17

View File

@ -153,7 +153,9 @@ void MeasureAnalysisHistoryForm::onRemoveSelectedProject()
if (QMessageBox::No == QMessageBox::question(this, QStringLiteral(u"确认"), QStringLiteral(u"是否删除选择的测量分析项目?"))) {
return;
}
for (int row : selected_project_list.keys()) {
QList<int> selected_row_list = selected_project_list.keys();
qSort(selected_row_list.begin(), selected_row_list.end(), qGreater<int>());
for (int row : selected_row_list) {
const QString& project_name = selected_project_list.value(row).first;
ProjectList::Instance()->RmProjectModel(project_name);
const QString& project_filename = selected_project_list.value(row).second;