diff --git a/src/utils/udev.cpp b/src/utils/udev.cpp index a05688acb8..fcc3d7a88f 100644 --- a/src/utils/udev.cpp +++ b/src/utils/udev.cpp @@ -242,8 +242,8 @@ QString UdevDevice::action() const bool UdevDevice::isHotpluggable() const { - QString devPath = QString::fromUtf8(udev_device_get_devpath(m_device)); - return devPath.toLower().contains("usb"); + const auto devPath = QString::fromUtf8(udev_device_get_devpath(m_device)); + return devPath.contains("usb", Qt::CaseInsensitive); } UdevMonitor::UdevMonitor(Udev *udev)