aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llchatbar.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-04-27 14:08:57 -0700
committerMcCabe Maxsted2009-04-27 14:08:57 -0700
commitf6e2a7bbdd8e65a27e3c397dab98807e881323a7 (patch)
tree7e855424e416ca7357b2db56e8dba6e29be85967 /linden/indra/newview/llchatbar.cpp
parentFixed space in changelog (diff)
downloadmeta-impy-f6e2a7bbdd8e65a27e3c397dab98807e881323a7.zip
meta-impy-f6e2a7bbdd8e65a27e3c397dab98807e881323a7.tar.gz
meta-impy-f6e2a7bbdd8e65a27e3c397dab98807e881323a7.tar.bz2
meta-impy-f6e2a7bbdd8e65a27e3c397dab98807e881323a7.tar.xz
Applied Armin's gesture manager patch
Diffstat (limited to 'linden/indra/newview/llchatbar.cpp')
-rw-r--r--linden/indra/newview/llchatbar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 31fa653..971ffcd 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -48,6 +48,7 @@
48#include "llcommandhandler.h" // secondlife:///app/chat/ support 48#include "llcommandhandler.h" // secondlife:///app/chat/ support
49#include "llviewercontrol.h" 49#include "llviewercontrol.h"
50#include "llfloaterchat.h" 50#include "llfloaterchat.h"
51#include "llfloatergesture.h"
51#include "llgesturemgr.h" 52#include "llgesturemgr.h"
52#include "llkeyboard.h" 53#include "llkeyboard.h"
53#include "lllineeditor.h" 54#include "lllineeditor.h"
@@ -644,8 +645,9 @@ void LLChatBar::onCommitGesture(LLUICtrl* ctrl, void* data)
644 if (gestures) 645 if (gestures)
645 { 646 {
646 S32 index = gestures->getFirstSelectedIndex(); 647 S32 index = gestures->getFirstSelectedIndex();
647 if (index == 0) 648 if (index <= 0)
648 { 649 {
650 LLFloaterGesture::toggleVisibility();
649 return; 651 return;
650 } 652 }
651 const std::string& trigger = gestures->getSelectedValue().asString(); 653 const std::string& trigger = gestures->getSelectedValue().asString();
@@ -655,7 +657,6 @@ void LLChatBar::onCommitGesture(LLUICtrl* ctrl, void* data)
655 std::string text(trigger); 657 std::string text(trigger);
656 std::string revised_text; 658 std::string revised_text;
657 gGestureManager.triggerAndReviseString(text, &revised_text); 659 gGestureManager.triggerAndReviseString(text, &revised_text);
658
659 revised_text = utf8str_trim(revised_text); 660 revised_text = utf8str_trim(revised_text);
660 if (!revised_text.empty()) 661 if (!revised_text.empty())
661 { 662 {