summaryrefslogtreecommitdiffstats
path: root/kcontrol/usbview/usbdb.cpp
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-05-12 20:17:47 +0200
committergregory guy <gregory-tde@laposte.net>2021-05-17 23:41:50 +0200
commit1389e296969df0acf7f393b698a3a0f1fb572026 (patch)
treec974f6bebc1aefcab0658a49a6edffbe67ee6e79 /kcontrol/usbview/usbdb.cpp
parentf9381127bb9d913a1b8d525b3feb9e2956a54b84 (diff)
downloadtdebase-1389e296969df0acf7f393b698a3a0f1fb572026.tar.gz
tdebase-1389e296969df0acf7f393b698a3a0f1fb572026.zip
Make the option -DWITH_USBIDS more visible for packagers.
Look for installed usb.ids file, if not found, default to the one provided in source. usb.ids file has been updated to Version 2021.03.31 Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kcontrol/usbview/usbdb.cpp')
-rw-r--r--kcontrol/usbview/usbdb.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/kcontrol/usbview/usbdb.cpp b/kcontrol/usbview/usbdb.cpp
index c786ca40e..be5f3b63a 100644
--- a/kcontrol/usbview/usbdb.cpp
+++ b/kcontrol/usbview/usbdb.cpp
@@ -22,16 +22,13 @@
#include "usbdb.h"
-
USBDB::USBDB()
{
-#ifndef USBIDS_FILE
- TQString db = "/usr/share/hwdata/usb.ids"; /* on Fedora */
- if (!TQFile::exists(db))
- db = locate("data", "kcmusb/usb.ids");
-#else
TQString db = USBIDS_FILE;
-#endif
+
+ if (!TQFile::exists(db))
+ TQString db = locate("data", "kcmusb/usb.ids");
+
if (db.isEmpty())
return;