From f47c3437da642cc85e6e1fed470a2964e914f208 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Nov 2023 18:07:10 +0300 Subject: CurrencyRates: adaptation for two or more data providers --- protocols/CurrencyRates/src/ImportExport.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/CurrencyRates/src/ImportExport.cpp') 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); -- cgit v1.2.3