diff options
| author | George Hazan <george.hazan@gmail.com> | 2023-11-17 18:07:10 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2023-11-17 18:07:10 +0300 |
| commit | f47c3437da642cc85e6e1fed470a2964e914f208 (patch) | |
| tree | 73f01228df45c6ac6ea0f669c40966c5b1a193fb /protocols/CurrencyRates/src/ImportExport.cpp | |
| parent | 0353de737783a61cc1381d26dcdeda3111b61cb8 (diff) | |
CurrencyRates: adaptation for two or more data providers
Diffstat (limited to 'protocols/CurrencyRates/src/ImportExport.cpp')
| -rw-r--r-- | protocols/CurrencyRates/src/ImportExport.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/CurrencyRates/src/ImportExport.cpp b/protocols/CurrencyRates/src/ImportExport.cpp index 8d6804713a..e91dbe5993 100644 --- a/protocols/CurrencyRates/src/ImportExport.cpp +++ b/protocols/CurrencyRates/src/ImportExport.cpp @@ -211,8 +211,7 @@ INT_PTR CurrencyRates_Export(WPARAM wp, LPARAM lp) MCONTACT hContact = MCONTACT(wp); if (hContact) { - auto pProvider = GetContactProviderPtr(hContact); - if (pProvider) { + if (g_pCurrentProvider) { auto *pNode = export_contact(hContact, doc); if (pNode) pRoot->InsertEndChild(pNode); @@ -220,8 +219,7 @@ INT_PTR CurrencyRates_Export(WPARAM wp, LPARAM lp) } else { for (auto &cc : Contacts(MODULENAME)) { - auto pProvider = GetContactProviderPtr(cc); - if (pProvider) { + if (g_pCurrentProvider) { auto *pNode = export_contact(cc, doc); if (pNode) pRoot->InsertEndChild(pNode); |
