src/gui/painting/qcups.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   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     const char *ppdFile = _cupsGetPPD(printerName);
   345     const char *ppdFile = _cupsGetPPD(printerName);
   346     unlink(ppdFile);
   346     if (ppdFile)
       
   347         unlink(ppdFile);
   347     return (ppdFile != 0);
   348     return (ppdFile != 0);
   348 }
   349 }
   349 
   350 
   350 QString QCUPSSupport::unicodeString(const char *s)
   351 QString QCUPSSupport::unicodeString(const char *s)
   351 {
   352 {