summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/autodetection.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-08-15 21:29:31 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-08-15 21:29:31 +0000
commit76100783af55297a81dca0545be8c6c93bcebdd3 (patch)
treeebb64e5a1f7771e8419286bcfdcb2159bf0036e2 /rbutil/rbutilqt/base/autodetection.cpp
parent9cdfbfede4ada50715a662caf89402d0d2e18bcc (diff)
downloadrockbox-76100783af55297a81dca0545be8c6c93bcebdd3.tar.gz
rockbox-76100783af55297a81dca0545be8c6c93bcebdd3.tar.bz2
rockbox-76100783af55297a81dca0545be8c6c93bcebdd3.zip
Improve notification about unsupported players.
- Display the name of a detected unsupported player when running autodetection from the configuration window. - Extend the list of known-unsupported players. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22334 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/autodetection.cpp')
-rw-r--r--rbutil/rbutilqt/base/autodetection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp
index e6819992cf..b038aa683d 100644
--- a/rbutil/rbutilqt/base/autodetection.cpp
+++ b/rbutil/rbutilqt/base/autodetection.cpp
@@ -418,8 +418,9 @@ bool Autodetection::detectUsb()
qDebug() << "[USB] detected problem with player" << m_errdev;
return true;
}
- if(usbincompat.contains(attached.at(i))) {
- m_incompat = usbincompat.value(attached.at(i));
+ QString idstring = QString("%1").arg(attached.at(i), 8, 16, QChar('0'));
+ if(!RbSettings::platformValue(idstring, RbSettings::CurName).toString().isEmpty()) {
+ m_incompat = idstring;
qDebug() << "[USB] detected incompatible player" << m_incompat;
return true;
}