修改测量分析历史记录删除BUG
This commit is contained in:
parent
1410ebfb7f
commit
1f750a6f17
|
|
@ -153,7 +153,9 @@ void MeasureAnalysisHistoryForm::onRemoveSelectedProject()
|
||||||
if (QMessageBox::No == QMessageBox::question(this, QStringLiteral(u"确认"), QStringLiteral(u"是否删除选择的测量分析项目?"))) {
|
if (QMessageBox::No == QMessageBox::question(this, QStringLiteral(u"确认"), QStringLiteral(u"是否删除选择的测量分析项目?"))) {
|
||||||
return;
|
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;
|
const QString& project_name = selected_project_list.value(row).first;
|
||||||
ProjectList::Instance()->RmProjectModel(project_name);
|
ProjectList::Instance()->RmProjectModel(project_name);
|
||||||
const QString& project_filename = selected_project_list.value(row).second;
|
const QString& project_filename = selected_project_list.value(row).second;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user