mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
(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
1 changed files with 9 additions and 7 deletions
|
@ -659,13 +659,15 @@ refreshInfo( struct DetailsImpl * di, tr_torrent ** torrents, int n )
|
||||||
}
|
}
|
||||||
if( mixed_date && mixed_creator )
|
if( mixed_date && mixed_creator )
|
||||||
str = mixed;
|
str = mixed;
|
||||||
else if( mixed_date )
|
else {
|
||||||
g_snprintf( buf, sizeof( buf ), _( "Created by %1$s" ), creator );
|
if( mixed_date )
|
||||||
else if( mixed_creator || !*creator )
|
g_snprintf( buf, sizeof( buf ), _( "Created by %1$s" ), creator );
|
||||||
g_snprintf( buf, sizeof( buf ), _( "Created on %1$s" ), datestr );
|
else if( mixed_creator || !*creator )
|
||||||
else
|
g_snprintf( buf, sizeof( buf ), _( "Created on %1$s" ), datestr );
|
||||||
g_snprintf( buf, sizeof( buf ), _( "Created by %1$s on %2$s" ), creator, datestr );
|
else
|
||||||
str = buf;
|
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 );
|
gtk_label_set_text( GTK_LABEL( di->origin_lb ), str );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue