diff --git a/core/fileprinter.cpp b/core/fileprinter.cpp index cbcec8949..e8d28303a 100644 --- a/core/fileprinter.cpp +++ b/core/fileprinter.cpp @@ -80,7 +80,11 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele if ( inputFileInfo.suffix() == outputFileInfo.suffix() ) { int res = QFile::copy( fileList[0], printer.outputFileName() ); - if ( res ) ret = 0; + if ( res ) { + ret = 0; + } else { + ret = -5; + } } else if ( inputFileInfo.suffix() == "ps" && outputFileInfo.suffix() == "pdf" && ps2pdfAvailable() ) { exe = "ps2pdf"; argList << fileList[0] << printer.outputFileName(); @@ -150,6 +154,7 @@ QList FilePrinter::pageList( QPrinter &printer, int lastPage, const QList