Commit 5c125263 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Do not add sensors we did not request when they appear

Otherwise we get unexpected sensors appearing when a new device is
connected. This is currently mainly triggered by the network plugin that
shows/hides devices based on connectivity.
parent 0a8df2f9
......@@ -284,7 +284,7 @@ void KSysGuard::SensorDataModel::componentComplete()
void SensorDataModel::Private::addSensor(const QString &id)
if (requestedSensors.indexOf(id) != -1) {
if (!requestedSensors.contains(id)) {
Supports Markdown
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