@ -235,6 +235,7 @@ options_imp::options_imp(QWidget *parent):
@@ -235,6 +235,7 @@ options_imp::options_imp(QWidget *parent):
connect ( spinProxyPort , SIGNAL ( valueChanged ( QString ) ) , this , SLOT ( enableApplyButton ( ) ) ) ;
connect ( checkProxyPeerConnecs , SIGNAL ( toggled ( bool ) ) , SLOT ( enableApplyButton ( ) ) ) ;
connect ( checkForceProxy , SIGNAL ( toggled ( bool ) ) , SLOT ( enableApplyButton ( ) ) ) ;
connect ( isProxyOnlyForTorrents , SIGNAL ( toggled ( bool ) ) , SLOT ( enableApplyButton ( ) ) ) ;
connect ( checkProxyAuth , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableApplyButton ( ) ) ) ;
connect ( textProxyUsername , SIGNAL ( textChanged ( QString ) ) , this , SLOT ( enableApplyButton ( ) ) ) ;
connect ( textProxyPassword , SIGNAL ( textChanged ( QString ) ) , this , SLOT ( enableApplyButton ( ) ) ) ;
@ -445,6 +446,7 @@ void options_imp::saveOptions() {
@@ -445,6 +446,7 @@ void options_imp::saveOptions() {
pref - > setProxyPort ( getProxyPort ( ) ) ;
pref - > setProxyPeerConnections ( checkProxyPeerConnecs - > isChecked ( ) ) ;
pref - > setForceProxy ( checkForceProxy - > isChecked ( ) ) ;
pref - > setProxyOnlyForTorrents ( isProxyOnlyForTorrents - > isChecked ( ) ) ;
pref - > setProxyAuthEnabled ( isProxyAuthEnabled ( ) ) ;
pref - > setProxyUsername ( getProxyUsername ( ) ) ;
pref - > setProxyPassword ( getProxyPassword ( ) ) ;
@ -700,6 +702,7 @@ void options_imp::loadOptions() {
@@ -700,6 +702,7 @@ void options_imp::loadOptions() {
spinProxyPort - > setValue ( pref - > getProxyPort ( ) ) ;
checkProxyPeerConnecs - > setChecked ( pref - > proxyPeerConnections ( ) ) ;
checkForceProxy - > setChecked ( pref - > getForceProxy ( ) ) ;
isProxyOnlyForTorrents - > setChecked ( pref - > isProxyOnlyForTorrents ( ) ) ;
checkProxyAuth - > setChecked ( pref - > isProxyAuthEnabled ( ) ) ;
textProxyUsername - > setText ( pref - > getProxyUsername ( ) ) ;
textProxyPassword - > setText ( pref - > getProxyPassword ( ) ) ;
@ -1002,6 +1005,7 @@ void options_imp::enableProxy(int index) {
@@ -1002,6 +1005,7 @@ void options_imp::enableProxy(int index) {
spinProxyPort - > setEnabled ( true ) ;
checkProxyPeerConnecs - > setEnabled ( true ) ;
checkForceProxy - > setEnabled ( true ) ;
isProxyOnlyForTorrents - > setEnabled ( true ) ;
if ( index > 1 ) {
checkProxyAuth - > setEnabled ( true ) ;
} else {
@ -1016,6 +1020,7 @@ void options_imp::enableProxy(int index) {
@@ -1016,6 +1020,7 @@ void options_imp::enableProxy(int index) {
spinProxyPort - > setEnabled ( false ) ;
checkProxyPeerConnecs - > setEnabled ( false ) ;
checkForceProxy - > setEnabled ( false ) ;
isProxyOnlyForTorrents - > setEnabled ( false ) ;
checkProxyAuth - > setEnabled ( false ) ;
checkProxyAuth - > setChecked ( false ) ;
}