[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Opening a remote file from the recent files list in the widget
From:       David Faure <faure () kde ! org>
Date:       2006-02-09 17:07:15
Message-ID: 200602091807.15302.faure () kde ! org
[Download RAW message or body]

On Wednesday 08 February 2006 19:39, Peter Simonsson wrote:
> 2006/2/8, Boudewijn Rempt <boud@valdyas.org>:
> > 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 <boud@valdyas.org>:
> > > > > > 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic