forked from qt-creator/qt-creator
Android: Fix AvdModel::indexForAvdName
This was using serialNumber instead of avdname, whereas the reverse function avdName() actually used avdname. Change-Id: Ieb91f97323f2adcf9306c90c91b145e494f177c0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -264,7 +264,7 @@ void AvdModel::setAvdList(const AndroidDeviceInfoList &list)
|
|||||||
QModelIndex AvdModel::indexForAvdName(const QString &avdName) const
|
QModelIndex AvdModel::indexForAvdName(const QString &avdName) const
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_list.size(); ++i) {
|
for (int i = 0; i < m_list.size(); ++i) {
|
||||||
if (m_list.at(i).serialNumber == avdName)
|
if (m_list.at(i).avdname == avdName)
|
||||||
return index(i, 0);
|
return index(i, 0);
|
||||||
}
|
}
|
||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
|
Reference in New Issue
Block a user