src/gui/painting/qcups.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
--- a/src/gui/painting/qcups.cpp	Mon Mar 15 12:43:09 2010 +0200
+++ b/src/gui/painting/qcups.cpp	Thu Apr 08 14:19:33 2010 +0300
@@ -342,7 +342,9 @@
 {
     if (!isAvailable())
         return false;
-    return _cupsGetPPD(printerName) != 0;
+    const char *ppdFile = _cupsGetPPD(printerName);
+    unlink(ppdFile);
+    return (ppdFile != 0);
 }
 
 QString QCUPSSupport::unicodeString(const char *s)