summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/autodetection.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-04-16 20:49:43 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-04-16 20:49:43 +0000
commitbfce7eea5c0d43c9f2cd84cd325bbcc1949102e3 (patch)
treeac926f8a844d2706cb01323d80fb42b2a8f24898 /rbutil/rbutilqt/base/autodetection.cpp
parent2995c2d265e4e6b2c07a88023bbd7635ae7cb9e9 (diff)
downloadrockbox-bfce7eea5c0d43c9f2cd84cd325bbcc1949102e3.tar.gz
rockbox-bfce7eea5c0d43c9f2cd84cd325bbcc1949102e3.tar.bz2
rockbox-bfce7eea5c0d43c9f2cd84cd325bbcc1949102e3.zip
Refactor USB ID map retrieval from device settings file and minimize duplicated code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20716 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/autodetection.cpp')
-rw-r--r--rbutil/rbutilqt/base/autodetection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp
index aa74419ce0..ee42a8c09e 100644
--- a/rbutil/rbutilqt/base/autodetection.cpp
+++ b/rbutil/rbutilqt/base/autodetection.cpp
@@ -333,9 +333,9 @@ bool Autodetection::detectUsb()
// usbids holds the mapping in the form
// ((VID<<16)|(PID)), targetname
// the ini file needs to hold the IDs as hex values.
- QMap<int, QString> usbids = settings->usbIdMap();
- QMap<int, QString> usberror = settings->usbIdErrorMap();
- QMap<int, QString> usbincompat = settings->usbIdIncompatMap();
+ QMap<int, QString> usbids = settings->usbIdMap(RbSettings::MapDevice);
+ QMap<int, QString> usberror = settings->usbIdMap(RbSettings::MapError);
+ QMap<int, QString> usbincompat = settings->usbIdMap(RbSettings::MapIncompatible);
// usb pid detection
QList<uint32_t> attached;