From kde-core-devel Tue Oct 29 11:09:37 2002 From: David Faure Date: Tue, 29 Oct 2002 11:09:37 +0000 To: kde-core-devel Subject: Re: disabling kio_devices X-MARC-Message: https://marc.info/?l=kde-core-devel&m=103588983022626 -----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@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) iD8DBQE9vmxx72KcVAmwbhARAnV5AKCJn7nxN+aeUK5IwXxx++QfBcbhRQCgiFlv rVhYRgcZ5+yGiEM5AqI+7g4= =EOWT -----END PGP SIGNATURE-----