From 051acc7df5ff02d7bb1ad92b9be95efdc553d6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 23 Sep 2017 18:40:41 +0200 Subject: Fix crash in tdehwlib if /sys/devices/system/cpu/cpu* is not accessible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdecore/tdehw/tdehardwaredevices.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tdecore/tdehw/tdehardwaredevices.cpp') diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index a4e352d60..1d8a4280b 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -863,9 +863,11 @@ void TDEHardwareDevices::processModifiedCPUs() { if (modified) { for (processorNumber=0; processorNumberuniqueID()); + if (hwdevice) { + // Signal new information available + emit hardwareUpdated(hwdevice); + emit hardwareEvent(TDEHardwareEvent::HardwareUpdated, hwdevice->uniqueID()); + } } } -- cgit v1.2.1