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