src/gui/painting/qcups.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
   340 
   340 
   341 bool QCUPSSupport::printerHasPPD(const char *printerName)
   341 bool QCUPSSupport::printerHasPPD(const char *printerName)
   342 {
   342 {
   343     if (!isAvailable())
   343     if (!isAvailable())
   344         return false;
   344         return false;
   345     return _cupsGetPPD(printerName) != 0;
   345     const char *ppdFile = _cupsGetPPD(printerName);
       
   346     unlink(ppdFile);
       
   347     return (ppdFile != 0);
   346 }
   348 }
   347 
   349 
   348 QString QCUPSSupport::unicodeString(const char *s)
   350 QString QCUPSSupport::unicodeString(const char *s)
   349 {
   351 {
   350 #ifndef QT_NO_TEXTCODEC
   352 #ifndef QT_NO_TEXTCODEC