Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-15 03:44:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-15 03:44:43 +0300
commit2564f2c1b3f9a007218522276c57ec3914302da0 (patch)
tree9c069c6074219fd8067a834c99a9d91a1cef9981 /source/blender/windowmanager/intern/wm_keymap.c
parent72e484e88fa6f2e66de5c3673a2bce1b2f61e603 (diff)
Fix T64604: Changing keymap doesn't tag preferences as dirty
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index c41ca67f795..4bcbce028b1 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -310,6 +310,7 @@ bool WM_keyconfig_remove(wmWindowManager *wm, wmKeyConfig *keyconf)
if (BLI_findindex(&wm->keyconfigs, keyconf) != -1) {
if (STREQLEN(U.keyconfigstr, keyconf->idname, sizeof(U.keyconfigstr))) {
BLI_strncpy(U.keyconfigstr, wm->defaultconf->idname, sizeof(U.keyconfigstr));
+ U.runtime.is_dirty = true;
WM_keyconfig_update_tag(NULL, NULL);
}
@@ -360,6 +361,9 @@ void WM_keyconfig_set_active(wmWindowManager *wm, const char *idname)
WM_keyconfig_update(wm);
BLI_strncpy(U.keyconfigstr, idname, sizeof(U.keyconfigstr));
+ if (wm->initialized & WM_KEYCONFIG_IS_INITIALIZED) {
+ U.runtime.is_dirty = true;
+ }
WM_keyconfig_update_tag(NULL, NULL);
WM_keyconfig_update(wm);