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

List:       kde-core-devel
Subject:    Re: [PATCH] another patch for the kio_devices problem
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-10-29 11:25:15
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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)

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9vnAb72KcVAmwbhARArZAAJ96EK+PalO2WM+5nCKvbZwv3VUhSwCcDQP7
89LEM6VHglkp4eJRux30PDQ=
=FVGe
-----END PGP SIGNATURE-----

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

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