Commit db1b9b53 authored by Albert Astals Cid's avatar Albert Astals Cid

Don't report gphoto devices that are child of gphoto devices

Acked by Lukáš

REVIEW: 119834
parent 3cf06605
......@@ -130,7 +130,7 @@ bool UDevManager::Private::checkOfInterest(const UdevQt::Device &device)
device.subsystem() == QLatin1String("video4linux") ||
device.subsystem() == QLatin1String("net") ||
device.deviceProperty("ID_MEDIA_PLAYER").toString().isEmpty() == false || // media-player-info recognized devices
device.deviceProperty("ID_GPHOTO2").toInt() == 1; // GPhoto2 cameras
(device.deviceProperty("ID_GPHOTO2").toInt() == 1 && device.parent().deviceProperty("ID_GPHOTO2").toInt() != 1); // GPhoto2 cameras
}
bool UDevManager::Private::isLidBubtton(const UdevQt::Device& device)
......
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