Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community 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

Summary:
Fix
BUG: 402949

Reviewers: #plasma, cfeck, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: asturmlechner, davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18032
parent 2a72522a
......@@ -20,6 +20,9 @@
USBDB::USBDB() {
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
continue;
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