зеркало из https://github.com/mozilla/gecko-dev.git
Make combobox remember by string instead of integer index
This commit is contained in:
Родитель
355e22c9c3
Коммит
a39247f8a4
|
@ -1436,8 +1436,10 @@ void CWizardMachineApp::GenerateList(CString action, WIDGET* targetWidget, CStri
|
|||
}
|
||||
else if(curWidget->type == "ComboBox")
|
||||
{
|
||||
int selIndex = atoi(curWidget->value);
|
||||
((CComboBox*)curWidget->control)->SetCurSel(selIndex);
|
||||
if (curWidget->value && curWidget->value != "")
|
||||
((CComboBox*)curWidget->control)->SelectString(-1, curWidget->value);
|
||||
else
|
||||
((CComboBox*)curWidget->control)->SetCurSel(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1207,7 +1207,8 @@ void CWizardUI::UpdateGlobals()
|
|||
**/
|
||||
int selectedIndex = ((CComboBox*)curWidget->control)->GetCurSel();
|
||||
char tmpStr[MIN_SIZE];
|
||||
itoa(selectedIndex, tmpStr, 10);
|
||||
//itoa(selectedIndex, tmpStr, 10);
|
||||
((CComboBox*)curWidget->control)->GetLBText(selectedIndex, tmpStr);
|
||||
curWidget->value = tmpStr;
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче