From 207150b44fec55bf2b8c5e74badde93880e277fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Fri, 3 Oct 2014 16:37:29 +0200 Subject: RPM Packaging: update and cleanup tdelibs --- .../tdelibs/tdelibs-3.5.13.2-cups_by_default.patch | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch (limited to 'redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch') diff --git a/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch b/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch deleted file mode 100644 index dfb472ee1..000000000 --- a/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- ./kdeprint/kmfactory.cpp.ORI 2013-05-09 00:14:51.664045869 +0200 -+++ ./kdeprint/kmfactory.cpp 2013-05-09 00:16:59.154367127 +0200 -@@ -249,8 +249,21 @@ - conf->writeEntry("PrintSystem", sys); - conf->sync(); - } -- else if ( sys.length()==1 && sys[0].isDigit() ) // discard old-style settings -+ else if ( sys.length()==1 && sys[0].isDigit() ) { // discard old-style settings - sys = "lpdunix"; -+ } else { -+ //Always Autodetect -+ //it will not try autodetect if user changes any option -+ //when user force some option, AlwaysSearch will be "no" and then -+ //kprinter will not to try autodetect again. -+ if(conf->readEntry("AlwaysSearch") != "no" ) { -+ sys = autoDetect(); -+ conf->writeEntry("PrintSystem",sys); -+ conf->writeEntry("AlwaysSearch","yes"); -+ conf->sync(); -+ } -+ } -+ - return sys; - } - -@@ -278,6 +291,7 @@ - { - KConfig *conf = printConfig(); - conf->setGroup("General"); -+ conf->writeEntry("AlwaysSearch","no"); - conf->writeEntry("PrintSystem", syst); - conf->sync(); - -- cgit v1.2.1