disabling kio_devices

David Faure david at mandrakesoft.com
Tue Oct 29 11:09:37 GMT 2002


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

On Tuesday 29 October 2002 00:00, Stephan Kulow wrote:
> OK, please check the attached patch. It disallows the move of trash
> and delete for protocols that do not support deleting.

The _del change is ok, but the doFileCopy change isn't - it should do this test
only if _moving_, not if _copying_.
So I suggest to move the "filtering" under the "case QDropEvent::Move :" near
the end of doFileCopy().

Of course the problems with such a patch are:
* No feedback to the user (nothing happens)
* Actions should be disabled
* Similar checks should be done in job.cpp, to prevent other apps from
deleting things from that protocol.

- -- 
David FAURE, david at mandrakesoft.com, faure at 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)

iD8DBQE9vmxx72KcVAmwbhARAnV5AKCJn7nxN+aeUK5IwXxx++QfBcbhRQCgiFlv
rVhYRgcZ5+yGiEM5AqI+7g4=
=EOWT
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list