On May 4, 2007, at 11:57 AM, Abdelrazak Younes wrote:
I did notice when trying this patch that when I drag a file to
the dock icon that is already loaded via sessions, I get the "The
document foo.lyx is already loaded. Do you want to revert to the
saved version?" dialog. That should probably be suppressed.
Yes. Using the already existing framework for initial file loading
should solve this. But this is more work :-(
I'll see what I can do.
OK, I've done it. Please test (together with session).
With this patch, double-clicking a file when LyX isn't running will
start LyX and (apparently) ignore session information about what
other files to load. So the "revert" dialog gets properly suppressed.
But is this the behavior we want? (I'm not sure it isn't; I'm just
asking.) Would it be preferable to load the double-clicked file
*together with* all other files from the session file?
Bennett