Fixed issue #514. Read only setting not working properly.
--HG-- branch : develop
This commit is contained in:
parent
7b40bc3667
commit
174b1fbfd6
|
@ -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.
|
||||
|
|
|
@ -3327,7 +3327,14 @@ bool MainWindow::MaybeSave()
|
|||
switch (ret)
|
||||
{
|
||||
case QMessageBox::Yes:
|
||||
if (doc->IsReadOnly())
|
||||
{
|
||||
return SaveAs();
|
||||
}
|
||||
else
|
||||
{
|
||||
return Save();
|
||||
}
|
||||
case QMessageBox::No:
|
||||
return true;
|
||||
case QMessageBox::Cancel:
|
||||
|
|
Loading…
Reference in New Issue
Block a user