fix for crash on cancel newconfig dialog
git-svn-id: svn://10.0.0.236/trunk@51215 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
959275c4ac
commit
b2360b9a85
@ -96,16 +96,12 @@ BOOL CInterpret::NewConfig(WIDGET *curWidget, CString globalsName)
|
||||
if (!tmpWidget)
|
||||
return FALSE;
|
||||
|
||||
/*
|
||||
CString tmpFunction = tmpWidget->action.function;
|
||||
CString params = replaceVars(tmpWidget->action.parameters,NULL);
|
||||
theApp.GenerateList(tmpFunction, tmpWidget, params);
|
||||
*/
|
||||
if (!tmpWidget->action.onInit.IsEmpty())
|
||||
interpret(tmpWidget->action.onInit, tmpWidget);
|
||||
|
||||
((CComboBox*)tmpWidget->control)->SelectString(0, configField);
|
||||
|
||||
if (!configField.IsEmpty())
|
||||
((CComboBox*)tmpWidget->control)->SelectString(0, configField);
|
||||
|
||||
theApp.SetGlobal(globalsName, configField);
|
||||
|
||||
return TRUE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user