新建流动段后下拉框默认先是当前选择的井

feature/UI-20260528
lvjunjie 6 days ago
parent 2b721e6b8a
commit eb1ced4988

@ -201,7 +201,8 @@ void nmWxNumericalDesign::fillResultWellCombo(const QString& selectedWellName)
}
// 当前井可能已经被删除;如果它已不在结果井下拉框中,就清空这个失效井名。
if(!sCurrentWellName.isEmpty() && m_pResultWellCombo->findText(sCurrentWellName) < 0) {
if(!sCurrentWellName.isEmpty() && m_pResultWellCombo->count() > 0
&& m_pResultWellCombo->findText(sCurrentWellName) < 0) {
sCurrentWellName.clear();
}

Loading…
Cancel
Save