summaryrefslogtreecommitdiffstats
path: root/kde/patch/kdelibs/kdelibs.upnp_conditional.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-12-22 15:07:05 +0100
committer Eric Hameleers <alien@slackware.com>2014-12-22 15:07:05 +0100
commiteb82fdc2eafc3d1b5f837fcda2c4903106d9d79a (patch)
tree4faf464e6ba3d915031f30be18faadb92c31d3c2 /kde/patch/kdelibs/kdelibs.upnp_conditional.patch
parent270c1ba7053478dbd1c632eea18d6e54d51e4ecc (diff)
downloadktown-eb82fdc2eafc3d1b5f837fcda2c4903106d9d79a.tar.gz
ktown-eb82fdc2eafc3d1b5f837fcda2c4903106d9d79a.tar.xz
KDE 4.8.4 for Slackware 14.0 (07jun2012)4.8.4
Diffstat (limited to '')
-rw-r--r--kde/patch/kdelibs/kdelibs.upnp_conditional.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/kde/patch/kdelibs/kdelibs.upnp_conditional.patch b/kde/patch/kdelibs/kdelibs.upnp_conditional.patch
new file mode 100644
index 0000000..3a19447
--- /dev/null
+++ b/kde/patch/kdelibs/kdelibs.upnp_conditional.patch
@@ -0,0 +1,15 @@
+--- kdelibs-4.8.0/solid/solid/managerbase.cpp.orig 2011-07-27 20:34:39.000000000 +0200
++++ kdelibs-4.8.0/solid/solid/managerbase.cpp 2012-01-26 09:17:49.409993419 +0100
+@@ -90,7 +90,11 @@
+ # endif
+
+ # if defined (HUPNP_FOUND)
+- m_backends << new Solid::Backends::UPnP::UPnPDeviceManager(0);
++ bool solidUpnpEnabled
++ = QString::fromLocal8Bit(qgetenv("SOLID_UPNP")).toInt()==1;
++ if (solidUpnpEnabled) {
++ m_backends << new Solid::Backends::UPnP::UPnPDeviceManager(0);
++ }
+ # endif
+ }
+ }