1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

small adjustments to inspector and check for utf-8 strings

This commit is contained in:
Mitchell Livingston 2006-11-23 02:53:47 +00:00
parent 48b0d28e26
commit 4c32f40f3b
3 changed files with 5 additions and 5 deletions

View file

@ -192,13 +192,13 @@ int tr_metainfoParse( tr_info_t * inf, const char * path,
snprintf( inf->trackerAnnounce, MAX_PATH_LENGTH, "%s", s2 );
/* Comment info */
if( ( val = tr_bencDictFind( &meta, "comment" ) ) )
if( ( val = tr_bencDictFind( beInfo, "comment.utf-8" ) ) || ( val = tr_bencDictFind( &meta, "comment" ) ) )
{
strcatUTF8( inf->comment, val->val.s.s );
}
/* Creator info */
if( ( val = tr_bencDictFind( &meta, "created by" ) ) )
if( ( val = tr_bencDictFind( beInfo, "created by.utf-8" ) ) || ( val = tr_bencDictFind( &meta, "created by" ) ) )
{
strcatUTF8( inf->creator, val->val.s.s );
}

View file

@ -39,10 +39,10 @@
#define TAB_OPTIONS_IDENT @"Options"
//15 spacing at the bottom of each tab
#define TAB_INFO_HEIGHT 297.0
#define TAB_INFO_HEIGHT 300.0
#define TAB_ACTIVITY_HEIGHT 109.0
#define TAB_PEERS_HEIGHT 260.0
#define TAB_FILES_HEIGHT 260.0
#define TAB_PEERS_HEIGHT 300.0
#define TAB_FILES_HEIGHT 300.0
#define TAB_OPTIONS_HEIGHT 83.0
#define INVALID -99