on xenial help sign in
also print info when we cannot fetch full details
commit8168e6c225de312c664553ce6e8bfe5d271dad24 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 4 Dec 2015, 20:48 (11 years ago) parent8e1dbdf
1 file changed+2−2
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp+2−2
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp+2−2
@@ -159,6 +159,8 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
159159 }
160160 eventPath = inputDevice->devicePath();
161161
162+ qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
163+
162164 fd = open(eventPath.toLatin1(), O_RDONLY|O_NONBLOCK);
163165 if (fd == -1) {
164166 return inputDevice;
@@ -193,8 +195,6 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
193195 }
194196 }
195197
196− qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
197−
198198 return inputDevice;
199199}
200200