fix:fix delete pacs settings bug.
This commit is contained in:
@@ -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 == m_lHostsNew[index].name)
|
||||||
{
|
m_lHostsNew.removeAt(index);
|
||||||
if (name == itr->name)
|
|
||||||
m_lHostsNew.removeAt(index);
|
|
||||||
index++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//for each (host var in m_lHostsNew)
|
//for each (host var in m_lHostsNew)
|
||||||
|
|||||||
Reference in New Issue
Block a user