mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Merge pull request #428 from rangemastersystems/master
Fix: ReportEnginePrivate::exportReport Не работал экспорт при пустом
This commit is contained in:
commit
9af5af74b3
@ -468,7 +468,7 @@ bool ReportEnginePrivate::exportReport(QString exporterName, const QString &file
|
|||||||
if (fn.isEmpty()){
|
if (fn.isEmpty()){
|
||||||
QString defaultFileName = reportName().split(".")[0];
|
QString defaultFileName = reportName().split(".")[0];
|
||||||
QString filter = QString("%1 (*.%2)").arg(e->exporterName()).arg(e->exporterFileExt());
|
QString filter = QString("%1 (*.%2)").arg(e->exporterName()).arg(e->exporterFileExt());
|
||||||
QString fn = QFileDialog::getSaveFileName(0, tr("%1 file name").arg(e->exporterName()), defaultFileName, filter);
|
fn = QFileDialog::getSaveFileName(0, tr("%1 file name").arg(e->exporterName()), defaultFileName, filter);
|
||||||
}
|
}
|
||||||
if (!fn.isEmpty()){
|
if (!fn.isEmpty()){
|
||||||
QFileInfo fi(fn);
|
QFileInfo fi(fn);
|
||||||
|
Loading…
Reference in New Issue
Block a user