call input_remapping_set_defaults before loading a new remap

This commit is contained in:
Tatsuya79 2018-05-16 13:30:57 +02:00 committed by GitHub
parent 2d540264e8
commit dd3c9dd838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ bool input_remapping_load_file(void *data, const char *path)
return false;
if (!string_is_empty(global->name.remapfile))
free(global->name.remapfile);
input_remapping_set_defaults(true);
global->name.remapfile = strdup(path);
for (i = 0; i < MAX_USERS; i++)