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:
parent
6f54cb01e6
commit
816a5e4546
1 changed files with 1 additions and 7 deletions
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue