Fix Puzzle's crash.
This commit is contained in:
parent
88cee6b7a7
commit
eb4f8719f2
|
@ -573,7 +573,10 @@ auto VPMainWindow::LoadFile(const QString &path) -> bool
|
|||
void VPMainWindow::LayoutWasSaved(bool saved)
|
||||
{
|
||||
setWindowModified(!saved);
|
||||
if (ui)
|
||||
{
|
||||
not IsLayoutReadOnly() ? ui->actionSave->setEnabled(!saved) : ui->actionSave->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user