Tape 'Save As' should save a file without read only state.

--HG--
branch : develop
This commit is contained in:
Valentina Zhuravska 2016-06-06 21:27:38 +03:00
parent 9b48867ee6
commit 20ffdc607d
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
- [#487] True dart point always goes to origin when the label is moved.
- [#128] New Tool: Slash and Spread.
- [#409] New feature: Export measurement file to Excel .csv.
- [#468] Error - Tape 'Save As' should set 'Read Only' to false.
# Version 0.4.5
- [#435] Valentina doesn't change the cursor.

View File

@ -658,6 +658,7 @@ void TMainWindow::FileSaveAs()
}
}
ReadOnly(false);
QString error;
bool result = SaveMeasurements(fileName, error);
if (result == false)
@ -673,7 +674,6 @@ void TMainWindow::FileSaveAs()
return;
}
ReadOnly(false);
VlpCreateLock(lock, fileName);
if (not lock->IsLocked())
{