diff --git a/ChangeLog.txt b/ChangeLog.txt index 5137bf944..76fe3e4d0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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. diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index 701a3742e..4c4bf1d4a 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -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);