We are waiting not empty string.
--HG-- branch : develop
This commit is contained in:
parent
8449a15cc3
commit
ded7591e65
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user