summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorYuri Chebotarev <ychebotarev@productengine.com>2010-04-23 15:50:20 +0300
committerYuri Chebotarev <ychebotarev@productengine.com>2010-04-23 15:50:20 +0300
commit92450263ec6eb31bd8fae233c3b6fef2f200db40 (patch)
tree1563a0802f9890d3ab33a5211ba3a076447303fc /indra
parent583e1951bf2c8ae0d7a1b8b5be362c13a0f4311e (diff)
fix for EXT-6999 Group creation panel: pop-up menu for empty group title editfield has 'Delete' item enabled
reviewed Mike Antipov https://codereview.productengine.com/secondlife/r/307/ --HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lllineeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index 843f72d8e4..45f9de8e8d 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -1440,7 +1440,7 @@ BOOL LLLineEditor::handleUnicodeCharHere(llwchar uni_char)
BOOL LLLineEditor::canDoDelete() const
{
- return ( !mReadOnly && (!mPassDelete || (hasSelection() || (getCursor() < mText.length()))) );
+ return ( !mReadOnly && mText.length() > 0 && (!mPassDelete || (hasSelection() || (getCursor() < mText.length()))) );
}
void LLLineEditor::doDelete()