summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r--core/downloadfromdcthread.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index 214854342..e2db8b66e 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -287,12 +287,8 @@ QStringList DCDeviceData::getProductListFromVendor(const QString &vendor)
int DCDeviceData::getMatchingAddress(const QString &vendor, const QString &product)
{
- for (int i = 0; i < connectionListModel.rowCount(); i++) {
- QString address = connectionListModel.address(i);
- if (address.contains(product))
- return i;
- }
- return -1;
+ Q_UNUSED(vendor)
+ return connectionListModel.indexOf(product);
}
DCDeviceData *DownloadThread::data()