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.
|
- [#128] New Tool: Slash and Spread.
|
||||||
- [#409] New feature: Export measurement file to Excel .csv.
|
- [#409] New feature: Export measurement file to Excel .csv.
|
||||||
- [#180] New feature: Search field in tape app and dialog Increments.
|
- [#180] New feature: Search field in tape app and dialog Increments.
|
||||||
|
- [#514] Read only setting not working properly.
|
||||||
|
|
||||||
# Version 0.4.5
|
# Version 0.4.5
|
||||||
- [#435] Valentina doesn't change the cursor.
|
- [#435] Valentina doesn't change the cursor.
|
||||||
|
|
|
@ -3327,7 +3327,14 @@ bool MainWindow::MaybeSave()
|
||||||
switch (ret)
|
switch (ret)
|
||||||
{
|
{
|
||||||
case QMessageBox::Yes:
|
case QMessageBox::Yes:
|
||||||
|
if (doc->IsReadOnly())
|
||||||
|
{
|
||||||
|
return SaveAs();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return Save();
|
return Save();
|
||||||
|
}
|
||||||
case QMessageBox::No:
|
case QMessageBox::No:
|
||||||
return true;
|
return true;
|
||||||
case QMessageBox::Cancel:
|
case QMessageBox::Cancel:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user