Fix automatic mouse type selection when changing model in configuration dialogue.

This commit is contained in:
SarahW 2017-12-11 10:44:43 +00:00
commit 6447d4d91a

View file

@ -868,7 +868,8 @@ int config_dlgproc(void* hdlg, int message, INT_PARAM wParam, LONG_PARAM lParam)
c++;
}
if (mouse_valid(temp_mouse_type, temp_model))
if (mouse_valid(mouse_get_type(temp_mouse_type), temp_model))
wx_sendmessage(h, WX_CB_SETCURSEL, settings_mouse_to_list[temp_mouse_type], 0);
else
wx_sendmessage(h, WX_CB_SETCURSEL, 0, 0);