[PATCH] another patch for the kio_devices problem

Stephan Kulow coolo at kde.org
Tue Oct 29 12:01:55 GMT 2002


Am Tuesday 29 October 2002 12:25 schrieb David Faure:
> On Tuesday 29 October 2002 10:17, Stephan Kulow wrote:
> > Hi!
> >
> > The patch I sent tonight hinders kdesktop to even try to delete
> > devices:/ items, but still if an application tries
> > KIO::del("devices:/cdrom") it will get deleted.
> >
> > The attached patch checks in CopyJob and DeleteJob if the protocol
> > supports deleting and doesn't even stat then.
>
> Ah good.
> But setting m_error and emitting result will terminate the job, not move to
> the next URL (despite what your comment says ;)
>
> If you want to move on to the next src url, use this instead.
>             ++m_currentStatSrc;
>             statNextSrc();
>             return;
>
> (yes the second line is a recursive call)
Well, I want to give an error. I'm not sure how this is covered by KIO.

Greetings, Stephan





More information about the kde-core-devel mailing list