1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 07:03:44 +00:00

(trunk gtk) possible fix for "open folder" in single-file torrents

This commit is contained in:
Charles Kerr 2009-11-09 06:47:02 +00:00
parent 6f54cb01e6
commit 816a5e4546

View file

@ -291,11 +291,5 @@ void
tr_torrent_open_folder( TrTorrent * gtor )
{
tr_torrent * tor = tr_torrent_handle( gtor );
const tr_info * info = tr_torrent_info( gtor );
const gboolean single = info->fileCount == 1;
char * path = single ? g_build_filename( tr_torrentGetCurrentDir( tor ), info->name, NULL )
: g_build_filename( tr_torrentGetCurrentDir( tor ), NULL );
gtr_open_file( path );
g_free( path );
gtr_open_file( tr_torrentGetCurrentDir( tor ) );
}