]> granicus.if.org Git - transmission/commitdiff
(trunk gtk) small renderer cleanup from the #3488 patch
authorCharles Kerr <charles@transmissionbt.com>
Fri, 6 Aug 2010 15:17:27 +0000 (15:17 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Fri, 6 Aug 2010 15:17:27 +0000 (15:17 +0000)
gtk/torrent-cell-renderer.c

index 19eacdb1364c8deaff4de4b59925c30806bd1e27..4b120d9c1fe07d68caf60394d3d2fa0d43f797a7 100644 (file)
@@ -170,7 +170,7 @@ getShortTransferString( const tr_torrent  * tor,
         tr_formatter_speed_KBps( upStr, uploadSpeed_KBps, sizeof( upStr ) );
 
     if( haveDown && haveUp )
-        /* 1==down speed, 2==down arrow, 3==up speed, 4==down arrow */
+        /* 1==down arrow, 2==down speed, 3==up arrow, 4==down speed */
         g_snprintf( buf, buflen, _( "%1$s %2$s, %3$s %4$s" ),
                     gtr_get_unicode_string( GTR_UNICODE_DOWN ), downStr,
                     gtr_get_unicode_string( GTR_UNICODE_UP ), upStr );
@@ -182,7 +182,7 @@ getShortTransferString( const tr_torrent  * tor,
         /* bandwidth speed + unicode arrow */
         g_snprintf( buf, buflen, _( "%1$s %2$s" ),
                     gtr_get_unicode_string( GTR_UNICODE_UP ), upStr );
-    else if( tr_torrentHasMetadata( tor ) )
+    else if( haveMeta )
         /* the torrent isn't uploading or downloading */
         g_strlcpy( buf, _( "Idle" ), buflen );
     else