From e87fab72a9d3252e682a9b1a37d0e92f46db739b Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Wed, 27 Apr 2011 12:33:44 +0200 Subject: fix bug #879 context menu of line + text editors triggers select all even if not asked to --- linden/indra/llui/lllineeditor.cpp | 2 +- linden/indra/llui/lltexteditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp index 453bb50..c4f9525 100644 --- a/linden/indra/llui/lllineeditor.cpp +++ b/linden/indra/llui/lllineeditor.cpp @@ -1344,7 +1344,7 @@ void LLLineEditor::defineMenuCallbacks(LLMenuGL* menu) { "Select All Text", this, (void*)context_enable_selectall); - menu->setCtrlResponse(1+LLCallbackInformation::LL_MENU_ITEM_CALL_GL_ON_CLICK, + menu->setCtrlResponse(LLCallbackInformation::LL_MENU_ITEM_CALL_GL_ON_CLICK, "Select All Text", this, (void*)context_selectall); diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index 5bddcbc..dd72a69 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp @@ -636,7 +636,7 @@ void LLTextEditor::defineMenuCallbacks(LLMenuGL* menu) { "Select All Text", this, (void*)context_enable_selectall); - menu->setCtrlResponse(1+LLCallbackInformation::LL_MENU_ITEM_CALL_GL_ON_CLICK, + menu->setCtrlResponse(LLCallbackInformation::LL_MENU_ITEM_CALL_GL_ON_CLICK, "Select All Text", this, (void*)context_selectall); -- cgit v1.1