diff --git a/solid/solid/backends/udev/udevqt.h b/solid/solid/backends/udev/udevqt.h index 8b0aba7d..8c9eb8c3 100644 --- a/solid/solid/backends/udev/udevqt.h +++ b/solid/solid/backends/udev/udevqt.h @@ -80,8 +80,6 @@ Q_SIGNALS: void deviceAdded(const UdevQt::Device &dev); void deviceRemoved(const UdevQt::Device &dev); void deviceChanged(const UdevQt::Device &dev); - void deviceOnlined(const UdevQt::Device &dev); - void deviceOfflined(const UdevQt::Device &dev); private Q_SLOTS: void monitorReadyRead(int fd); diff --git a/solid/solid/backends/udev/udevqtclient.cpp b/solid/solid/backends/udev/udevqtclient.cpp index b35e35d6..d0af50df 100644 --- a/solid/solid/backends/udev/udevqtclient.cpp +++ b/solid/solid/backends/udev/udevqtclient.cpp @@ -108,15 +108,13 @@ void Client::monitorReadyRead(int fd) emit deviceRemoved(device); } else if (action == "change") { emit deviceChanged(device); - } else if (action == "online") { - emit deviceOnlined(device); - } else if (action == "offline") { - emit deviceOfflined(device); - /* - bind/unbind are driver changing for device type of event, on some systems it appears to be - broken and doing it all the time thus ignore the actions - */ + } else if (action == "online" || action == "offline") { + ; // nada } else if (Q_UNLIKELY(action != "bind" && action != "unbind")) { + /* + bind/unbind are driver changing for device type of event, on some systems it appears to be + broken and doing it all the time thus ignore the actions + */ qWarning("UdevQt: unhandled device action \"%s\"", action.constData()); } }