From kde-core-devel Tue Oct 29 11:25:15 2002 From: David Faure Date: Tue, 29 Oct 2002 11:25:15 +0000 To: kde-core-devel Subject: Re: [PATCH] another patch for the kio_devices problem X-MARC-Message: https://marc.info/?l=kde-core-devel&m=103589076623762 -----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-----