diff --git a/ChangeLog.txt b/ChangeLog.txt index b0986a49d..0716cda43 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -4,6 +4,7 @@ - Fix regression. Export to tiled PDF has no suffix. - Fix warning about missing EUDC font om Wondows. - Fix regression in Pattern properties dialog. Tab Security is disabled for pattern with individual measurements. +- Don't warn about a file format update after Save as. # Version 0.7.42 Jan 26, 2021 - Fix export of pattern recipe. diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index b1bd616ca..2293c4e0e 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -954,6 +954,17 @@ bool TMainWindow::FileSaveAs() return false; } + if (mType == MeasurementsType::Multisize) + { + m_curFileFormatVersion = VVSTConverter::MeasurementMaxVer; + m_curFileFormatVersionStr = VVSTConverter::MeasurementMaxVerStr; + } + else + { + m_curFileFormatVersion = VVITConverter::MeasurementMaxVer; + m_curFileFormatVersionStr = VVITConverter::MeasurementMaxVerStr; + } + UpdatePadlock(false); UpdateWindowTitle(); diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 506ee380b..398a01f6c 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -3177,6 +3177,8 @@ bool MainWindow::on_actionSaveAs_triggered() QFile::remove(oldFilePath + *autosavePrefix); } + m_curFileFormatVersion = VPatternConverter::PatternMaxVer; + m_curFileFormatVersionStr = VPatternConverter::PatternMaxVerStr; patternReadOnly = false; qCDebug(vMainWindow, "Locking file");