diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-06-03 12:23:29 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-06-03 12:23:29 +0300 |
commit | afb08192247138b8e8d86671a6dc001e041d1c82 (patch) | |
tree | afcd4e513e550faae1197a321142b597174da444 /indra/newview/llfloaterjoystick.cpp | |
parent | 1491c23d9b7850d91518b689572716026c0bacc8 (diff) |
MAINT-1788 FIXED Cancel changes when clicking Close button or exiting Viewer.
Diffstat (limited to 'indra/newview/llfloaterjoystick.cpp')
-rwxr-xr-x | indra/newview/llfloaterjoystick.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llfloaterjoystick.cpp b/indra/newview/llfloaterjoystick.cpp index b7fff6cae3..ee3d633dd0 100755 --- a/indra/newview/llfloaterjoystick.cpp +++ b/indra/newview/llfloaterjoystick.cpp @@ -326,7 +326,21 @@ void LLFloaterJoystick::onClickOK(void *joy_panel) } } +void LLFloaterJoystick::onClickCloseBtn(bool app_quitting) +{ + cancel(); + closeFloater(app_quitting); +} + void LLFloaterJoystick::setSNDefaults() { LLViewerJoystick::getInstance()->setSNDefaults(); } + +void LLFloaterJoystick::onClose(bool app_quitting) +{ + if (app_quitting) + { + cancel(); + } +} |