(trunk gtk) fix for "origin" field in the properties dialog when multiple torrents are selected. (kklimonda)
This commit is contained in:
parent
ca6c850275
commit
c86d2cc871
|
@ -659,7 +659,8 @@ refreshInfo( struct DetailsImpl * di, tr_torrent ** torrents, int n )
|
|||
}
|
||||
if( mixed_date && mixed_creator )
|
||||
str = mixed;
|
||||
else if( mixed_date )
|
||||
else {
|
||||
if( mixed_date )
|
||||
g_snprintf( buf, sizeof( buf ), _( "Created by %1$s" ), creator );
|
||||
else if( mixed_creator || !*creator )
|
||||
g_snprintf( buf, sizeof( buf ), _( "Created on %1$s" ), datestr );
|
||||
|
@ -667,6 +668,7 @@ refreshInfo( struct DetailsImpl * di, tr_torrent ** torrents, int n )
|
|||
g_snprintf( buf, sizeof( buf ), _( "Created by %1$s on %2$s" ), creator, datestr );
|
||||
str = buf;
|
||||
}
|
||||
}
|
||||
gtk_label_set_text( GTK_LABEL( di->origin_lb ), str );
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue