From 6447d4d91ab82ddec0e45f726dd08622b160fd36 Mon Sep 17 00:00:00 2001 From: SarahW Date: Mon, 11 Dec 2017 10:44:43 +0000 Subject: [PATCH] Fix automatic mouse type selection when changing model in configuration dialogue. --- src/wx-config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wx-config.c b/src/wx-config.c index d917449..672d208 100644 --- a/src/wx-config.c +++ b/src/wx-config.c @@ -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);