summaryrefslogtreecommitdiff
path: root/protocols/CurrencyRates/src/ImportExport.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-17 14:55:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-17 14:55:45 +0300
commit0353de737783a61cc1381d26dcdeda3111b61cb8 (patch)
tree44244b70514e95860c15d5e2642b0c67457925c5 /protocols/CurrencyRates/src/ImportExport.cpp
parentf163ebca6e34e418978e30a83989d001186eff53 (diff)
final version of CurrencyRates before adding second provider
Diffstat (limited to 'protocols/CurrencyRates/src/ImportExport.cpp')
-rw-r--r--protocols/CurrencyRates/src/ImportExport.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/CurrencyRates/src/ImportExport.cpp b/protocols/CurrencyRates/src/ImportExport.cpp
index dce9989367..8d6804713a 100644
--- a/protocols/CurrencyRates/src/ImportExport.cpp
+++ b/protocols/CurrencyRates/src/ImportExport.cpp
@@ -443,10 +443,9 @@ bool import_contact(const TiXmlNode *pXmlContact, CImportContext &impctx)
if (!handle_module(cst.m_hContact, pNode))
return false;
- if (cst.m_bNewContact) {
- cst.m_pProvider->AddContact(cst.m_hContact);
+ if (cst.m_bNewContact)
cst.m_pProvider->RefreshContact(cst.m_hContact);
- }
+
return true;
}