Blame SOURCES/kdelibs-kdebug288410.patch

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