@ -56,8 +56,6 @@ void OptionsModel::Init()
SoftSetArg ( " -proxy " , settings . value ( " addrProxy " ) . toString ( ) . toStdString ( ) ) ;
SoftSetArg ( " -proxy " , settings . value ( " addrProxy " ) . toString ( ) . toStdString ( ) ) ;
if ( settings . contains ( " nSocksVersion " ) & & settings . value ( " fUseProxy " ) . toBool ( ) )
if ( settings . contains ( " nSocksVersion " ) & & settings . value ( " fUseProxy " ) . toBool ( ) )
SoftSetArg ( " -socks " , settings . value ( " nSocksVersion " ) . toString ( ) . toStdString ( ) ) ;
SoftSetArg ( " -socks " , settings . value ( " nSocksVersion " ) . toString ( ) . toStdString ( ) ) ;
if ( settings . contains ( " detachDB " ) )
SoftSetBoolArg ( " -detachdb " , settings . value ( " detachDB " ) . toBool ( ) ) ;
if ( ! language . isEmpty ( ) )
if ( ! language . isEmpty ( ) )
SoftSetArg ( " -lang " , language . toStdString ( ) ) ;
SoftSetArg ( " -lang " , language . toStdString ( ) ) ;
}
}
@ -173,8 +171,6 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const
return QVariant ( nDisplayUnit ) ;
return QVariant ( nDisplayUnit ) ;
case DisplayAddresses :
case DisplayAddresses :
return QVariant ( bDisplayAddresses ) ;
return QVariant ( bDisplayAddresses ) ;
case DetachDatabases :
return QVariant ( bitdb . GetDetach ( ) ) ;
case Language :
case Language :
return settings . value ( " language " , " " ) ;
return settings . value ( " language " , " " ) ;
default :
default :
@ -256,12 +252,6 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
bDisplayAddresses = value . toBool ( ) ;
bDisplayAddresses = value . toBool ( ) ;
settings . setValue ( " bDisplayAddresses " , bDisplayAddresses ) ;
settings . setValue ( " bDisplayAddresses " , bDisplayAddresses ) ;
break ;
break ;
case DetachDatabases : {
bool fDetachDB = value . toBool ( ) ;
bitdb . SetDetach ( fDetachDB ) ;
settings . setValue ( " detachDB " , fDetachDB ) ;
}
break ;
case Language :
case Language :
settings . setValue ( " language " , value ) ;
settings . setValue ( " language " , value ) ;
break ;
break ;