+2006-03-16 John Spray <spray@lyx.org>
+
+ * lyxfunc.C (getStatus): disable LFUN_MENUWRITE when document is
+ clean (bug 2313)
+
2006-03-15 Martin Vermeer <martin.vermeer@hut.fi>
* CutAndPaste.C (pasteSelectionHelper): comments
break;
}
+ case LFUN_MENUWRITE: {
+ enable = !view()->buffer()->isClean();
+ break;
+ }
+
// this one is difficult to get right. As a half-baked
// solution, we consider only the first action of the sequence
case LFUN_SEQUENCE: {
case LFUN_CANCEL:
case LFUN_META_FAKE:
case LFUN_CLOSEBUFFER:
- case LFUN_MENUWRITE:
case LFUN_WRITEAS:
case LFUN_UPDATE:
case LFUN_PREVIEW: