From 1fb8f767a8fa2be9c763e2b1cdf0f4d8588e4909 Mon Sep 17 00:00:00 2001 From: lvjunjie Date: Fri, 29 May 2026 17:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E8=AE=A1=E7=AE=97=E6=97=B6=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=9A=84=E4=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp b/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp index 54863c8..7b8343a 100644 --- a/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp +++ b/Src/nmNum/nmSubWxs/nmWxNumericalDesign.cpp @@ -210,6 +210,11 @@ void nmWxNumericalDesign::fillResultWellCombo(const QString& selectedWellName) } } + // 未计算时没有结果井列表,先显示当前井,避免下拉框空白。 + if(m_pResultWellCombo->count() == 0 && !sCurrentWellName.isEmpty()) { + m_pResultWellCombo->addItem(sCurrentWellName); + } + int nIndex = m_pResultWellCombo->findText(sCurrentWellName); if(nIndex < 0 && m_pResultWellCombo->count() > 0) { nIndex = 0;