Fix layout sheet export with empty name.

This commit is contained in:
Roman Telezhynskyi 2022-09-16 18:41:22 +03:00
parent 1eb8661007
commit 851e8cf5e5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
# Valentina 0.7.53 (unreleased)
- Fix layout sheet export with empty name.
# Valentina 0.7.52 September 12, 2022
- Fix crash when default locale is ru.
- Puzzle app. Fix incorrect update of a layout piece.

View File

@ -4140,7 +4140,8 @@ void VPMainWindow::on_ExportSheet()
}
const QString sheetTitle = sheet->GetName();
const QString fileName = sheetTitle.isEmpty() ? QFileInfo(curFile).baseName() : sheetTitle;
const QString defaultName = not curFile.isEmpty() ? QFileInfo(curFile).baseName() : tr("sheet");
const QString fileName = sheetTitle.isEmpty() ? defaultName : sheetTitle;
DialogSaveManualLayout dialog(1, false, fileName, this);