We are waiting not empty string.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-17 11:51:43 +03:00
parent 8449a15cc3
commit ded7591e65

View File

@ -357,7 +357,7 @@ void TableWindow::PrintToPdf()
const QString fileName = QFileDialog::getSaveFileName(this, tr("Print to pdf"), const QString fileName = QFileDialog::getSaveFileName(this, tr("Print to pdf"),
QDir::homePath()+"/"+this->fileName+".pdf", QDir::homePath()+"/"+this->fileName+".pdf",
tr("PDF file (*.pdf)")); tr("PDF file (*.pdf)"));
if (fileName.isEmpty()) if (not fileName.isEmpty())
{ {
printer.setOutputFileName(fileName); printer.setOutputFileName(fileName);
printer.setResolution(static_cast<int>(VApplication::PrintDPI)); printer.setResolution(static_cast<int>(VApplication::PrintDPI));