summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-05-01 00:33:11 +0300
committeraunsane <aunsane@gmail.com>2018-05-01 00:33:11 +0300
commit179f34e621e0c847e262abeea06c65bb83ffdbd5 (patch)
tree4390714c8afdbb1eb99288f595d99464dfe2b81d /plugins/Db_autobackups
parent11c2c06d4a603956a51349b3f0c5b7e0eabe744a (diff)
CloudFile: fix for #1315
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/src/options.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp
index c3d41975ef..7a7e9d8fd0 100644
--- a/plugins/Db_autobackups/src/options.cpp
+++ b/plugins/Db_autobackups/src/options.cpp
@@ -316,9 +316,10 @@ int CALLBACK COptionsDlg::BrowseProc(HWND hwnd, UINT uMsg, LPARAM, LPARAM)
int COptionsDlg::EnumCloudFileServices(const CFSERVICEINFO *serviceInfo, void *param)
{
CCtrlCombo &combo = *(CCtrlCombo*)param;
- combo.AddString(serviceInfo->userName, (LPARAM)serviceInfo->accountName);
+ int pos = combo.GetCount();
+ combo.InsertString(serviceInfo->userName, pos, (LPARAM)serviceInfo->accountName);
if (mir_strcmp(serviceInfo->accountName, options.cloudfile_service) == 0)
- combo.SetCurSel(combo.GetCount() - 1);
+ combo.SetCurSel(pos);
return 0;
}