From koffice-devel Thu Feb 09 17:07:15 2006 From: David Faure Date: Thu, 09 Feb 2006 17:07:15 +0000 To: koffice-devel Subject: Re: Opening a remote file from the recent files list in the widget Message-Id: <200602091807.15302.faure () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=113950486311397 On Wednesday 08 February 2006 19:39, Peter Simonsson wrote: > 2006/2/8, Boudewijn Rempt : > > On Wed, 8 Feb 2006, David Faure wrote: > > > > > On Wednesday 08 February 2006 16:22, Boudewijn Rempt wrote: > > > > On Wednesday 08 February 2006 16:04, Peter Simonsson wrote: > > > > > 2006/2/8, Boudewijn Rempt : > > > > > > With Krita, I cannot open a remote file from the recent files list in the > > > > > > startup widget. I can open a remote file (say, > > > > > > http://www.valdyas.org/~boud/face1.kra) directly from konqueror, I can > > > > > > open it from the recent files list in the file menu, but not when I > > > > > > select it in the startup widget. > > > > > > > > > It's because krita assumes that it has loaded the doc when the view is > > > > > created which might not be the case when opening remote files. > > > > > > > > I'm still not getting it... I don't want to create the view before I've loaded > > > > the document. > > > > > > And yet, that's how the framework works. For remote files the loading is async, > > > so the view is created before the doc. I remember fixing a few assumptions in > > > kword/kpresenter to make that work. Usually it's not too difficult, just some 0-pointer > > > checks here and there. > > > > But when do the views get informed of the loading finishing? > > > Here is a patch that works for me... http://janeway.no-ip.org/kritaload.diff No need for your own signal, kparts provides one. Try connecting to SIGNAL(completed()) from the document. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel