Merge branch 'dev' of http://192.168.1.9:3000/Bug/DCMV into dev

This commit is contained in:
kradchen
2025-05-21 14:59:02 +08:00

View File

@@ -331,13 +331,10 @@ void ConfigurationDialog::del()
return; return;
QString name = m_pPacsModel->index(currentRow, 3).data().toString(); QString name = m_pPacsModel->index(currentRow, 3).data().toString();
int index = 0; for (int index = 0; index < m_lHostsNew.size(); ++index)
QList<host>::iterator itr = m_lHostsNew.begin();
for (; itr != m_lHostsNew.end(); ++itr)
{ {
if (name == itr->name) if (name == m_lHostsNew[index].name)
m_lHostsNew.removeAt(index); m_lHostsNew.removeAt(index);
index++;
} }
//for each (host var in m_lHostsNew) //for each (host var in m_lHostsNew)