[PATCH] KDesktop drag & drop (BR26456)

Waldo Bastian bastian at kde.org
Wed May 7 11:19:33 BST 2003


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

On Wednesday 07 May 2003 11:38, David Faure wrote:
> One problem with pasteDataAsync: who deletes the tempfile?
> This is a general problem, not only for this code... Here we could create
> a QObject that takes care of it, connected to the job's result() signal.
> (KDE 4 solution: make KTempFile a QObject and add a slot to it, that closes
> and deletes it).

I move the file to it's final destination instead of copying it, so that takes 
care of deleting it as long as there aren't any errors.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+uN21N4pvrENfboIRAjL7AJ9inOFQca6fV96a96MpeCUGR3HjNQCeLwbM
0mMqMVWoxc9ioKozPWuQENw=
=UzDg
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list