fix:fix delete pacs settings bug.

This commit is contained in:
sunwen
2025-05-21 11:18:12 +08:00
parent d43ae7f601
commit 74d53255af

View File

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