1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(trunk gtk) #3336 "gtk client confuses magnet links as files and tries to trash them" -- fixed

This commit is contained in:
Charles Kerr 2010-06-23 16:32:02 +00:00
parent 5e2a6f6c6a
commit 79ca1fb96a

View file

@ -453,7 +453,7 @@ gtr_object_ref_sink( gpointer object )
int
gtr_file_trash_or_remove( const char * filename )
{
if( filename && *filename )
if( filename && g_file_test( filename, G_FILE_TEST_EXISTS ) )
{
gboolean trashed = FALSE;
#ifdef HAVE_GIO