|
|
@ -59,10 +59,6 @@ void OptionsModel::Init() |
|
|
|
settings.setValue("nDisplayUnit", BitcoinUnits::BTC); |
|
|
|
settings.setValue("nDisplayUnit", BitcoinUnits::BTC); |
|
|
|
nDisplayUnit = settings.value("nDisplayUnit").toInt(); |
|
|
|
nDisplayUnit = settings.value("nDisplayUnit").toInt(); |
|
|
|
|
|
|
|
|
|
|
|
if (!settings.contains("bDisplayAddresses")) |
|
|
|
|
|
|
|
settings.setValue("bDisplayAddresses", false); |
|
|
|
|
|
|
|
bDisplayAddresses = settings.value("bDisplayAddresses", false).toBool(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!settings.contains("strThirdPartyTxUrls")) |
|
|
|
if (!settings.contains("strThirdPartyTxUrls")) |
|
|
|
settings.setValue("strThirdPartyTxUrls", ""); |
|
|
|
settings.setValue("strThirdPartyTxUrls", ""); |
|
|
|
strThirdPartyTxUrls = settings.value("strThirdPartyTxUrls", "").toString(); |
|
|
|
strThirdPartyTxUrls = settings.value("strThirdPartyTxUrls", "").toString(); |
|
|
@ -200,8 +196,6 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
case DisplayUnit: |
|
|
|
case DisplayUnit: |
|
|
|
return nDisplayUnit; |
|
|
|
return nDisplayUnit; |
|
|
|
case DisplayAddresses: |
|
|
|
|
|
|
|
return bDisplayAddresses; |
|
|
|
|
|
|
|
case ThirdPartyTxUrls: |
|
|
|
case ThirdPartyTxUrls: |
|
|
|
return strThirdPartyTxUrls; |
|
|
|
return strThirdPartyTxUrls; |
|
|
|
case Language: |
|
|
|
case Language: |
|
|
@ -296,10 +290,6 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in |
|
|
|
case DisplayUnit: |
|
|
|
case DisplayUnit: |
|
|
|
setDisplayUnit(value); |
|
|
|
setDisplayUnit(value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case DisplayAddresses: |
|
|
|
|
|
|
|
bDisplayAddresses = value.toBool(); |
|
|
|
|
|
|
|
settings.setValue("bDisplayAddresses", bDisplayAddresses); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case ThirdPartyTxUrls: |
|
|
|
case ThirdPartyTxUrls: |
|
|
|
if (strThirdPartyTxUrls != value.toString()) { |
|
|
|
if (strThirdPartyTxUrls != value.toString()) { |
|
|
|
strThirdPartyTxUrls = value.toString(); |
|
|
|
strThirdPartyTxUrls = value.toString(); |
|
|
|