summaryrefslogtreecommitdiff
path: root/src/modules/langpack/lpopts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-25 14:19:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-25 14:19:43 +0000
commit88f6179361e5b378c2938c77674d28cd1dc9a4ed (patch)
tree8ad248bd753a5e7643057a43c5a8bd78d3789017 /src/modules/langpack/lpopts.cpp
parent86e8851bf37227b9f70f88e1788c7355422ee3b0 (diff)
- language packs' directory is now %miranda_path%\Languages
- lang pack loading code restructurization git-svn-id: http://svn.miranda-ng.org/main/trunk@8738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/langpack/lpopts.cpp')
-rw-r--r--src/modules/langpack/lpopts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/langpack/lpopts.cpp b/src/modules/langpack/lpopts.cpp
index f52254afff..376f74fcc9 100644
--- a/src/modules/langpack/lpopts.cpp
+++ b/src/modules/langpack/lpopts.cpp
@@ -152,7 +152,7 @@ INT_PTR CALLBACK DlgLangpackOpt(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
int idx = ComboBox_GetCurSel(hwndList);
int count = ComboBox_GetCount(hwndList);
for (int i = 0; i < count; i++) {
- LANGPACK_INFO *pack = (LANGPACK_INFO*)ComboBox_GetItemData(hwndList, idx);
+ LANGPACK_INFO *pack = (LANGPACK_INFO*)ComboBox_GetItemData(hwndList, i);
if (i == idx) {
db_set_ws(NULL, "Langpack", "Current", pack->tszFileName);
lstrcpy(tszPath, pack->tszFullPath);
@@ -162,7 +162,7 @@ INT_PTR CALLBACK DlgLangpackOpt(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
}
if (tszPath[0]) {
- CallService(MS_LANGPACK_RELOAD, 0, (LPARAM)tszPath);
+ ReloadLangpack(tszPath);
CloseWindow(GetParent(hwndDlg));
DestroyWindow(GetParent(hwndDlg));
}