Two more disabled options fixes in the config interfaces.

This commit is contained in:
Volker Ruppert 2021-03-05 21:25:13 +00:00
parent 01516a153f
commit 66d9fd53b5
2 changed files with 10 additions and 4 deletions

View File

@ -978,6 +978,7 @@ void bx_init_options()
"", BX_PATHNAME_LEN);
deplist->add(advopts);
enabled->set_dependent_list(deplist);
enabled->set_enabled(BX_SUPPORT_PCI);
pci->set_options(pci->SHOW_PARENT);
slot->set_options(slot->SHOW_PARENT);

View File

@ -587,11 +587,16 @@ void MyFrame::OnEditCPU(wxCommandEvent& WXUNUSED(event))
void MyFrame::OnEditCPUID(wxCommandEvent& WXUNUSED(event))
{
ParamDialog dlg(this, -1);
bx_list_c *list = (bx_list_c*) SIM->get_param("cpuid");
dlg.SetTitle(wxString(list->get_title(), wxConvUTF8));
dlg.AddParam(list);
dlg.ShowModal();
if (list != NULL) {
ParamDialog dlg(this, -1);
dlg.SetTitle(wxString(list->get_title(), wxConvUTF8));
dlg.AddParam(list);
dlg.ShowModal();
} else {
wxMessageBox(wxT("Nothing to configure in this section!"),
wxT("Not enabled"), wxOK | wxICON_ERROR, this);
}
}
void MyFrame::OnEditMemory(wxCommandEvent& WXUNUSED(event))