config: If configure dialog opened with an unavailable model selected
(eg ROMs not present), force an available model instead. Fixes new model creation when only one ROM set available.
This commit is contained in:
parent
e781f6b4a2
commit
b22cc53122
1 changed files with 2 additions and 0 deletions
|
|
@ -737,6 +737,8 @@ int config_dlgproc(void* hdlg, int message, INT_PARAM wParam, LONG_PARAM lParam)
|
|||
c++;
|
||||
}
|
||||
wx_sendmessage(h, WX_CB_SETCURSEL, modeltolist[model], 0);
|
||||
model = listtomodel[modeltolist[model]];
|
||||
romset = model_getromset();
|
||||
prev_model = model;
|
||||
|
||||
recalc_vid_list(hdlg, romstomodel[romset], 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue