Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-25 Thread rgheck
Stefan Schimanski wrote: Am 24.11.2008 um 17:49 schrieb Richard Heck: Jürgen Spitzmüller wrote: Richard Heck wrote: This would do, in the sense that it'll get the result we want. But let me try to explain the problem again. The function loadIfNeeded() is called for every single keypress, mo

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-25 Thread Jürgen Spitzmüller
Richard Heck wrote: > I think the fileChanged() thing could be made to work. But right now, > it's all bound up with preview stuff, and I do not know anything about > this. I'm afraid to touch it. As I understand it, fileChanged() is only activated if we use preview. What we would need to do, pro

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-25 Thread Stefan Schimanski
Am 24.11.2008 um 17:49 schrieb Richard Heck: Jürgen Spitzmüller wrote: Richard Heck wrote: This would do, in the sense that it'll get the result we want. But let me try to explain the problem again. The function loadIfNeeded() is called for every single keypress, mouse press, or whatever,

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-24 Thread Richard Heck
Jürgen Spitzmüller wrote: Richard Heck wrote: This would do, in the sense that it'll get the result we want. But let me try to explain the problem again. The function loadIfNeeded() is called for every single keypress, mouse press, or whatever, for every InsetInclude. Hm, this is a pro

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-24 Thread Jürgen Spitzmüller
Richard Heck wrote: > This would do, in the sense that it'll get the result we want. But let > me try to explain the problem again. The function loadIfNeeded() is > called for every single keypress, mouse press, or whatever, for every > InsetInclude. Hm, this is a problem in itself, I'd say. > S

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-24 Thread Jürgen Spitzmüller
Richard Heck wrote: > The problem is to figure out when to check this. At the moment---this > was what caused the bug---LyX checks to see if the file can be loaded > any time you do anything, e.g., type a character, click the mouse, > whatever. So we'd have to check the modtime or calculate the che

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-24 Thread Richard Heck
Jürgen Spitzmüller wrote: Richard Heck wrote: The problem is to figure out when to check this. At the moment---this was what caused the bug---LyX checks to see if the file can be loaded any time you do anything, e.g., type a character, click the mouse, whatever. So we'd have to check the modt

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-24 Thread Richard Heck
Jürgen Spitzmüller wrote: rgheck wrote: If a file fails to load, we do not try to load it again. The downside is that, even if you fixed the problem, then LyX won't try to load it again in that session. I tried resetting the failedtoload_ variable in fileChanged(), but that didn't work, as it

Re: [Cvslog] r27688 - in /lyx-devel/trunk/src/insets: InsetInclude.cpp...

2008-11-24 Thread Jürgen Spitzmüller
rgheck wrote: > If a file fails to load, we do not try to load it again. The downside is > that, even if you fixed the problem, then LyX won't try to load it again in > that session. I tried resetting the failedtoload_ variable in > fileChanged(), but that didn't work, as it doesn't seem to get hit