Fixed issue #703. Valentina warns about format rewriting for unsaved files.

(grafted from c25298f49b2401b67647213dd6543ba880ddf58d)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-06-08 09:39:56 +03:00
parent 4df84fdd94
commit f12e9ee4ac
3 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,7 @@
- [#698] Problem typing in new axis point for new piece.
- [#702] Valentina produces broken shortcut (.lnk) files on Windows.
- Changed default behaviour if path to multisize measurements or templates doesn't exist.
- [#703] Valentina warns about format rewriting for unsaved files.
# Version 0.5.0 May 9, 2017
- [#581] User can now filter input lists by keyword in function wizard.

View File

@ -364,10 +364,14 @@ void TMainWindow::FileNew()
if (mType == MeasurementsType::Standard)
{
m = new VMeasurements(mUnit, measurements.BaseSize(), measurements.BaseHeight(), data);
m_curFileFormatVersion = VVSTConverter::MeasurementMaxVer;
m_curFileFormatVersionStr = VVSTConverter::MeasurementMaxVerStr;
}
else
{
m = new VMeasurements(mUnit, data);
m_curFileFormatVersion = VVITConverter::MeasurementMaxVer;
m_curFileFormatVersionStr = VVITConverter::MeasurementMaxVerStr;
}
mIsReadOnly = m->IsReadOnly();

View File

@ -3094,6 +3094,9 @@ void MainWindow::New()
mouseCoordinate = new QLabel(QString("0, 0 (%1)").arg(VDomDocument::UnitsToStr(qApp->patternUnit(), true)));
ui->toolBarOption->addWidget(mouseCoordinate);
m_curFileFormatVersion = VPatternConverter::PatternMaxVer;
m_curFileFormatVersionStr = VPatternConverter::PatternMaxVerStr;
}
else
{