~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Having played new-Loopy a bit recently, I've had occasion to think a
[sgt/puzzles]
/
osx.m
diff --git
a/osx.m
b/osx.m
index
ec9b6f9
..
33031e3
100644
(file)
--- a/
osx.m
+++ b/
osx.m
@@
-806,7
+806,8
@@
struct frontend {
- (BOOL)validateMenuItem:(NSMenuItem *)item
{
if ([item action] == @selector(copy:))
- (BOOL)validateMenuItem:(NSMenuItem *)item
{
if ([item action] == @selector(copy:))
- return (ourgame->can_format_as_text ? YES : NO);
+ return (ourgame->can_format_as_text_ever &&
+ midend_can_format_as_text_now(me) ? YES : NO);
else if ([item action] == @selector(solveGame:))
return (ourgame->can_solve ? YES : NO);
else
else if ([item action] == @selector(solveGame:))
return (ourgame->can_solve ? YES : NO);
else