On Wed, Aug 08, 2007 at 09:02:57PM +0200, Andre Poenitz wrote:

> On Wed, Aug 08, 2007 at 08:33:22PM +0200, Enrico Forestieri wrote:
> > On Wed, Aug 08, 2007 at 08:25:14PM +0200, Andre Poenitz wrote:
> > 
> > > On Tue, Aug 07, 2007 at 03:55:50PM -0500, Bo Peng wrote:
> > > > > Yep. -2 (even without seeing the patch :)
> > > > 
> > > > How about a combination of both?
> > > > 
> > > > 1. when lyx gets focus, check diskfile. if modified, set diskModified = 
> > > > true
> > > > 2. when the buffer is modified and if diskModified, ask if reload the
> > > > file. If so, reload.the file. If not, set diskModified to false.
> > > > 
> > > > Briefly, disk checking only happens when lyx gets focus, but reloading
> > > > is prompted only when the buffer is changed.
> > > 
> > > I guess everybody is aware of QFileSystemWatcher and just opted for
> > > wheel-reinvention...
> > 
> > That's not in Qt 4.1 and I don't think that requiring 4.2 for this
> > so easy task is necessary.
> 
> This "so easy task" has been discussed at least three times now, and so
> far there is not even consensus on the solution to use let alone an
> implementation of that solution on the horizon.

You know, that's a so important and vital feature that deserves to
be discussed at large. Then, QFileSystemWatcher really works only
on native Windows and Linux. On the other systems it does polling
and this is a real pain. Using Qt 4.1 the file dialog is populated
instantly, but with Qt 4.3 I can go and have a coffee in the meantime
if there are many files/directories. I much prefer Qt 4.1 with its
no QFileSystemWatcher feature ;-)

-- 
Enrico

Reply via email to