@@ -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