Fixed issue #514. Read only setting not working properly.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-06-18 17:37:06 +03:00
parent 7b40bc3667
commit 174b1fbfd6
2 changed files with 9 additions and 1 deletions

View File

@ -30,6 +30,7 @@
- [#128] New Tool: Slash and Spread.
- [#409] New feature: Export measurement file to Excel .csv.
- [#180] New feature: Search field in tape app and dialog Increments.
- [#514] Read only setting not working properly.
# Version 0.4.5
- [#435] Valentina doesn't change the cursor.

View File

@ -3327,7 +3327,14 @@ bool MainWindow::MaybeSave()
switch (ret)
{
case QMessageBox::Yes:
return Save();
if (doc->IsReadOnly())
{
return SaveAs();
}
else
{
return Save();
}
case QMessageBox::No:
return true;
case QMessageBox::Cancel: