diff --git a/src/plasma/service.cpp b/src/plasma/service.cpp index a7b2e2806..c50a26f56 100644 --- a/src/plasma/service.cpp +++ b/src/plasma/service.cpp @@ -335,6 +335,7 @@ void Service::setOperationEnabled(const QString &operation, bool enable) } } } + emit operationEnabledChanged(operation, enable); } bool Service::isOperationEnabled(const QString &operation) const diff --git a/src/plasma/service.h b/src/plasma/service.h index 70e4e458b..8b5852d31 100644 --- a/src/plasma/service.h +++ b/src/plasma/service.h @@ -185,6 +185,11 @@ Q_SIGNALS: */ void serviceReady(Plasma::Service *service); + /** + * Emitted when an operation got enabled or disabled + */ + void operationEnabledChanged(const QString &operation, bool enabled); + protected: /** * Default constructor