]> granicus.if.org Git - transmission/commitdiff
(trunk gtk) Don't display uTP checkbox in non-uTP builds.
authorJordan Lee <jordan@transmissionbt.com>
Sat, 19 Feb 2011 09:30:06 +0000 (09:30 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 19 Feb 2011 09:30:06 +0000 (09:30 +0000)
Tweak to r11976 s.t. the "Edit GNOME Proxy Settings" button doesn't get grouped in the "Peer Limits" section when uTP is disabled. :)

gtk/tr-prefs.c

index 1e2a207bd688ffde5144b032fa7ab2ee05600405..b562428dc03c9cc5f626c3c3f37f2ad33b475f57 100644 (file)
@@ -1225,10 +1225,10 @@ networkPage( GObject * core )
     w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, 3000, 5 );
     hig_workarea_add_row( t, &row, _( "Maximum peers _overall:" ), w, NULL );
 
-#ifdef WITH_UTP
     hig_workarea_add_section_divider( t, &row );
     hig_workarea_add_section_title( t, &row, _( "Options" ) );
 
+#ifdef WITH_UTP
     s = _( "Enable _uTP for peer communication" );
     w = new_check_button( s, TR_PREFS_KEY_UTP_ENABLED, core );
     s = _( "uTP is a tool for reducing network congestion." );