diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-06 00:00:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-06 00:00:43 +0300 |
commit | de898be6a2857dababe3eaa2bfb394a9ea92ecbe (patch) | |
tree | 69543eead49b6038d88e14cfc4f4856ca27a1cee /plugins/CloudFile/src/srmm.cpp | |
parent | 35e2289786a7f1542573d1a58ebc971970ea981c (diff) |
CloudFile: no need to create fake protocol instances just for search
Diffstat (limited to 'plugins/CloudFile/src/srmm.cpp')
-rw-r--r-- | plugins/CloudFile/src/srmm.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/srmm.cpp b/plugins/CloudFile/src/srmm.cpp index 8e400bbdbf..2a49cdb7ef 100644 --- a/plugins/CloudFile/src/srmm.cpp +++ b/plugins/CloudFile/src/srmm.cpp @@ -45,8 +45,7 @@ int OnSrmmButtonPressed(WPARAM, LPARAM lParam) if (cbc->flags != BBCF_ARROWCLICKED) { ptrA defaultService(db_get_sa(NULL, MODULE, "DefaultService")); if (defaultService) { - CCloudServiceSearch search(defaultService); - CCloudService *service = Services.find(&search); + CCloudService *service = FindService(defaultService); if (service) service->OpenUploadDialog(cbc->hContact); return 0; |