From 226d5b273ff2863f961ad2272eff9ecb6140decb Mon Sep 17 00:00:00 2001 From: "selmer%netscape.com" Date: Tue, 19 Oct 1999 23:43:13 +0000 Subject: [PATCH] fix for crash on cancel newconfig dialog --- cck/driver/interpret.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cck/driver/interpret.cpp b/cck/driver/interpret.cpp index e49a6cf80a4..94d89af2288 100644 --- a/cck/driver/interpret.cpp +++ b/cck/driver/interpret.cpp @@ -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;