diff options
author | Ansariel Hiller <ansarielhiller@yahoo.de> | 2019-11-09 15:06:09 +0000 |
---|---|---|
committer | Ansariel Hiller <ansarielhiller@yahoo.de> | 2019-11-09 15:06:09 +0000 |
commit | 8ca72557291b71853618a4e16f5ab193284c0e95 (patch) | |
tree | af7e21ca0be7197dd3b606ed3566b4bb12b6d5f1 /indra/newview/llkeyconflict.cpp | |
parent | 6ba0b97c851db7822e17a5a8dbb2d0964ca835f7 (diff) |
Fix custom user keybindings not being displayed in preferences correctly
Diffstat (limited to 'indra/newview/llkeyconflict.cpp')
-rw-r--r-- | indra/newview/llkeyconflict.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llkeyconflict.cpp b/indra/newview/llkeyconflict.cpp index b4f5ec4d57..121965a388 100644 --- a/indra/newview/llkeyconflict.cpp +++ b/indra/newview/llkeyconflict.cpp @@ -124,6 +124,10 @@ EMouseClickType mouse_from_string(const std::string& input) { return CLICK_BUTTON5; } + if (input == "Double LMB") + { + return CLICK_DOUBLELEFT; + } return CLICK_NONE; } @@ -396,7 +400,7 @@ void LLKeyConflictHandler::loadFromSettings(ESourceMode load_mode) // load user's filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, filename_default); - if (!gDirUtilp->fileExists(filename) || loadFromSettings(load_mode, filename, &mControlsMap)) + if (!gDirUtilp->fileExists(filename) || !loadFromSettings(load_mode, filename, &mControlsMap)) { // mind placeholders mControlsMap.insert(mDefaultsMap.begin(), mDefaultsMap.end()); |