mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Fix: ReportEnginePrivate::exportReport Не работал экспорт при пустом
параметре
This commit is contained in:
parent
29189c522d
commit
77d9d44df6
@ -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