Blame SOURCES/kdelibs-4.10.0-SOLID_UPNP.patch

92cace
diff -up kdelibs-4.10.0/solid/solid/managerbase.cpp.SOLID_UPNP kdelibs-4.10.0/solid/solid/managerbase.cpp
92cace
--- kdelibs-4.10.0/solid/solid/managerbase.cpp.SOLID_UPNP	2013-01-23 15:44:27.000000000 -0600
92cace
+++ kdelibs-4.10.0/solid/solid/managerbase.cpp	2013-01-31 07:48:05.058342162 -0600
92cace
@@ -98,7 +98,11 @@ void Solid::ManagerBasePrivate::loadBack
92cace
 #        endif
92cace
 
92cace
 #        if defined (HUPNP_FOUND)
92cace
-            m_backends << new Solid::Backends::UPnP::UPnPDeviceManager(0);
92cace
+            bool solidUpnpEnabled
92cace
+                = QString::fromLocal8Bit(qgetenv("SOLID_UPNP")).toInt()==1;
92cace
+            if (solidUpnpEnabled) {
92cace
+                m_backends << new Solid::Backends::UPnP::UPnPDeviceManager(0);
92cace
+            }
92cace
 #        endif
92cace
     }
92cace
 }