Fix layout sheet export with empty name.
This commit is contained in:
parent
1eb8661007
commit
851e8cf5e5
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user