fixed bug #1939571 - LangDLL auto select with only 1 language

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5598 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-04-10 18:00:01 +00:00
parent 46a9c50689
commit 8022122214

View file

@ -205,14 +205,18 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size,
} }
// start dialog // start dialog
if (visible_langs_num > 0) if (visible_langs_num > 1)
{ {
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG), 0, DialogProc); DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG), 0, DialogProc);
} }
else else if (visible_langs_num == 0)
{ {
pushstring(""); pushstring("");
} }
else
{
pushstring(langs[0].id);
}
// free structs // free structs
for (i = 0; i < visible_langs_num; i++) { for (i = 0; i < visible_langs_num; i++) {