--- nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/08/29 22:52:40 1.7 +++ nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/08/29 23:23:09 1.8 @@ -89,6 +89,9 @@ parent=self, pos=wxPoint(80, 8), size=wxSize(124, 16), style=0, validator=wxDefaultValidator, value='') self.comboBoxProfile.SetLabel('') + EVT_COMBOBOX(self.comboBoxProfile, + wxID_FRAGGLEDIALOGPREFSCOMBOBOXPROFILE, + self.OnComboboxprofileCombobox) self.staticText6 = wxStaticText(id=wxID_FRAGGLEDIALOGPREFSSTATICTEXT6, label='Profile', name='staticText6', parent=self, pos=wxPoint(16, @@ -184,7 +187,12 @@ event.Skip() def OnButtonprofiledelButton(self, event): - #self.parent.preferencesCtl.deleteProfile(self.comboBoxProfile.GetValue()) - #self.comboBoxProfile.Remove(self.comboBoxProfile.GetValue()) + self.parent.preferencesCtl.deleteProfile(self.comboBoxProfile.GetValue()) + self.comboBoxProfile.Delete(self.comboBoxProfile.FindString(self.comboBoxProfile.GetValue())) + self.parent.preferencesCtl.saveProfiles() + self.updateConfig() + event.Skip() + + def OnComboboxprofileCombobox(self, event): event.Skip() \ No newline at end of file