Revert "Removed the stupid restriction that "cellname readwrite" won't work"

This reverts commit 8b9c47c3ef.

Reverting back to the state before messing with the substrate extraction
code.  All of the substrate extraction code is now in a separate branch.
This commit is contained in:
Tim Edwards 2021-04-12 13:32:16 -04:00
parent 3703560305
commit a9fc99174a
1 changed files with 6 additions and 4 deletions

View File

@ -1084,11 +1084,13 @@ CmdCellname(w, cmd)
if (cellDef->cd_fd == -1)
dbReadOpen(cellDef, NULL, TRUE, NULL);
if (cellDef->cd_fd == -1)
TxError("Warning: Cell %s is not writeable\n", cellDef->cd_name);
#endif
if (cellDef->cd_fd != -1)
cellDef->cd_flags &= ~CDNOEDIT;
else
TxError("Advisory lock held on cell %s\n", cellDef->cd_name);
#else
cellDef->cd_flags &= ~CDNOEDIT;
#endif
WindAreaChanged(w, &w->w_screenArea);
CmdSetWindCaption(EditCellUse, EditRootDef);
}