Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit e556c25c authored by Alexandre Ferreira's avatar Alexandre Ferreira Committed by David Edmundson

Fix USB view

BUG: 402949

Reviewers: #plasma, cfeck, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: asturmlechner, davidedmundson, plasma-devel

Tags: #plasma

Differential Revision:
parent 2a72522a
......@@ -20,6 +20,9 @@
QString db = QStringLiteral("/usr/share/hwdata/usb.ids"); /* on Fedora and Arch*/
if (!QFile::exists(db)) {
db = QStringLiteral("/usr/share/misc/usb.ids"); /* on Gentoo */
if (!QFile::exists(db)) {
//cannot use locate(AppDataLocation) as the app is kinfocenter
db = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kcmusb"), QStandardPaths::LocateDirectory);
......@@ -103,7 +103,7 @@ void USBDevice::parseSysDir(int bus, int parent, int level, const QString& dname
USBDevice* dev = new USBDevice();
dev->parseSysDir(bus, ++level, _device, dname + QLatin1Char('/') + *it);
dev->parseSysDir(bus, _device, ++level, dname + QLatin1Char('/') + *it);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment