mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
plasma: disengage the sensor manager in system-monitor applet
KSGRD::SensorMgr does not do it automatically Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
734c96df2b
commit
62e3280048
1 changed files with 8 additions and 0 deletions
|
@ -373,6 +373,7 @@ class SystemMonitorClient : public QObject, public KSGRD::SensorClient
|
|||
Q_OBJECT
|
||||
public:
|
||||
SystemMonitorClient(QObject *parent);
|
||||
~SystemMonitorClient();
|
||||
|
||||
bool setup(const QString &hostname, const int port);
|
||||
QList<QByteArray> sensors() const;
|
||||
|
@ -402,6 +403,13 @@ SystemMonitorClient::SystemMonitorClient(QObject *parent)
|
|||
connect(KSGRD::SensorMgr, SIGNAL(update()), this, SLOT(slotUpdate()));
|
||||
}
|
||||
|
||||
SystemMonitorClient::~SystemMonitorClient()
|
||||
{
|
||||
if (KSGRD::SensorMgr->isConnected(m_hostname)) {
|
||||
KSGRD::SensorMgr->disengage(m_hostname);
|
||||
}
|
||||
}
|
||||
|
||||
bool SystemMonitorClient::setup(const QString &hostname, const int port)
|
||||
{
|
||||
if (KSGRD::SensorMgr->isConnected(m_hostname)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue