diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-26 23:39:32 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-26 23:39:32 +0100 |
commit | 42c8b56f62af171ee1e14963df301358970b1525 (patch) | |
tree | 11172ec2db5ec59e338ee24f2798a4ad6ceca493 /src/qt | |
parent | 3f8cb2c565b24635d2967c9900cf5f2aa8b1d632 (diff) |
Store addrProxy port in settings
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/optionsmodel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index 417e2b8646..ed2225cbf5 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -70,7 +70,7 @@ bool OptionsModel::Upgrade() if (walletdb.ReadSetting("addrProxy", addrProxyAddress)) { addrProxy = addrProxyAddress; - settings.setValue("addrProxy", addrProxy.ToStringIP().c_str()); + settings.setValue("addrProxy", addrProxy.ToStringIPPort().c_str()); walletdb.EraseSetting("addrProxy"); } } @@ -79,7 +79,7 @@ bool OptionsModel::Upgrade() // 0.6.0rc1 saved this as a CService, which causes failure when parsing as a CAddress if (walletdb.ReadSetting("addrProxy", addrProxy)) { - settings.setValue("addrProxy", addrProxy.ToStringIP().c_str()); + settings.setValue("addrProxy", addrProxy.ToStringIPPort().c_str()); walletdb.EraseSetting("addrProxy"); } } @@ -165,7 +165,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in if (addr.IsValid()) { addrProxy.SetIP(addr); - settings.setValue("addrProxy", addrProxy.ToStringIP().c_str()); + settings.setValue("addrProxy", addrProxy.ToStringIPPort().c_str()); } else { @@ -179,7 +179,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in if (nPort > 0 && nPort < std::numeric_limits<unsigned short>::max()) { addrProxy.SetPort(nPort); - settings.setValue("addrProxy", addrProxy.ToStringIP().c_str()); + settings.setValue("addrProxy", addrProxy.ToStringIPPort().c_str()); } else { |