From c57d086ed79eed894b821b9c5765e5c57359da41 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 12 Oct 2012 15:32:28 +0200 Subject: [PATCH] fixed issue 1188 --- src/adaptors/publishing/UBDocumentPublisher.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/adaptors/publishing/UBDocumentPublisher.cpp b/src/adaptors/publishing/UBDocumentPublisher.cpp index 39174dba..afda2456 100644 --- a/src/adaptors/publishing/UBDocumentPublisher.cpp +++ b/src/adaptors/publishing/UBDocumentPublisher.cpp @@ -62,7 +62,6 @@ UBDocumentPublisher::UBDocumentPublisher(UBDocumentProxy* pDocument, QObject *pa , mPassword("") , bLoginCookieSet(false) { - //NOOP init(); } @@ -109,7 +108,7 @@ void UBDocumentPublisher::buildUbwFile() if (UBFileSystemUtils::copyDir(mSourceDocument->persistencePath(), tmpDir)) { - QUuid publishingUuid = QUuid::createUuid(); + QString documentName = mSourceDocument->name(); mPublishingPath = tmpDir; mPublishingSize = mSourceDocument->pageCount(); @@ -120,11 +119,11 @@ void UBDocumentPublisher::buildUbwFile() UBExportFullPDF pdfExporter; pdfExporter.setVerbode(false); - pdfExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + UBStringUtils::toCanonicalUuid(publishingUuid) + ".pdf"); + pdfExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + documentName + ".pdf"); UBExportDocument ubzExporter; ubzExporter.setVerbode(false); - ubzExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + UBStringUtils::toCanonicalUuid(publishingUuid) + ".ubz"); + ubzExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + documentName + ".ubz"); // remove all useless files