Abdelrazak Younes wrote:
The File->Close Window menu item is always enabled, even when there is
only 1 window. This is because 'enable = d->views_.size() > 0' in
GuiApplication.cpp:741 will always be true. The attached patch changes
the 0 into 1. Is this also ok for Mac ?
I guess not as it is possible to have no window on Mac.
I agree. But ...
Reminder: at least in rc2 (don't know about svn) this is broken on the
Mac (I think it never worked correctly):
As soon as the last window is closed, all menu-bar entries (except the
Mac-specific "LyX" menu) disappear. That means the only thing one can do
at this point is to quit LyX and restart (keyboard shortcuts still work
though).
What should happen instead is that all menu entries (File, Edit, View
...) stay in place, but with those entries greyed out that don't make
sense when no document is open (so only File->New, Open, ... TeX
Information, Preferences, ... are selectable).
Does that make sense?
/Konrad