summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterjoystick.cpp
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-06-03 12:23:29 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-06-03 12:23:29 +0300
commitafb08192247138b8e8d86671a6dc001e041d1c82 (patch)
treeafcd4e513e550faae1197a321142b597174da444 /indra/newview/llfloaterjoystick.cpp
parent1491c23d9b7850d91518b689572716026c0bacc8 (diff)
MAINT-1788 FIXED Cancel changes when clicking Close button or exiting Viewer.
Diffstat (limited to 'indra/newview/llfloaterjoystick.cpp')
-rwxr-xr-xindra/newview/llfloaterjoystick.cpp14
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();
+ }
+}