Blame SOURCES/kdelibs-kdebug288410.patch

219491
diff --git a/solid/solid/backends/upower/upowerbattery.cpp b/solid/solid/backends/upower/upowerbattery.cpp
219491
index 7b5bdc4..8bd9343 100644
219491
--- a/solid/solid/backends/upower/upowerbattery.cpp
219491
+++ b/solid/solid/backends/upower/upowerbattery.cpp
219491
@@ -123,6 +123,7 @@ Solid::Battery::ChargeState Battery::chargeState() const
219491
 void Battery::slotChanged()
219491
 {
219491
     if (m_device) {
219491
+        const QString udi = m_device.data()->udi();
219491
         const int old_chargePercent = m_chargePercent;
219491
         const int old_capacity = m_capacity;
219491
         const Solid::Battery::ChargeState old_chargeState = m_chargeState;
219491
@@ -132,26 +133,26 @@ void Battery::slotChanged()
219491
 
219491
         if (old_chargePercent != m_chargePercent)
219491
         {
219491
-            emit chargePercentChanged(m_chargePercent, m_device.data()->udi());
219491
+            emit chargePercentChanged(m_chargePercent, udi);
219491
         }
219491
 
219491
         if (old_capacity != m_capacity) {
219491
-            emit capacityChanged(m_capacity, m_device.data()->udi());
219491
+            emit capacityChanged(m_capacity, udi);
219491
         }
219491
 
219491
         if (old_chargeState != m_chargeState)
219491
         {
219491
-            emit chargeStateChanged(m_chargeState, m_device.data()->udi());
219491
+            emit chargeStateChanged(m_chargeState, udi);
219491
         }
219491
 
219491
         if (old_isPlugged != m_isPlugged)
219491
         {
219491
-            emit plugStateChanged(m_isPlugged, m_device.data()->udi());
219491
+            emit plugStateChanged(m_isPlugged, udi);
219491
         }
219491
 
219491
         if (old_isPowerSupply != m_isPowerSupply)
219491
         {
219491
-            emit powerSupplyStateChanged(m_isPowerSupply, m_device.data()->udi());
219491
+            emit powerSupplyStateChanged(m_isPowerSupply, udi);
219491
         }
219491
     }
219491
 }