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:
parent
46a9c50689
commit
8022122214
1 changed files with 6 additions and 2 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue