MAINT-8289 FIXED Deleting inventory directory while keeping [Delete] key pressed

Wed, 14 Feb 2018 17:55:37 +0200

author
maxim_productengine<mnikolenko@productengine.com>
date
Wed, 14 Feb 2018 17:55:37 +0200
changeset 55283
9c7c7649960e
parent 55282
18b473079dc9
child 55284
6c6e8ceffbfd

MAINT-8289 FIXED Deleting inventory directory while keeping [Delete] key pressed

indra/llui/lllineeditor.cpp file | annotate | diff | revisions
     1.1 --- a/indra/llui/lllineeditor.cpp	Wed Feb 14 11:37:07 2018 +0200
     1.2 +++ b/indra/llui/lllineeditor.cpp	Wed Feb 14 17:55:37 2018 +0200
     1.3 @@ -1630,12 +1630,12 @@
     1.4  
     1.5  BOOL LLLineEditor::canDoDelete() const
     1.6  {
     1.7 -	return ( !mReadOnly && mText.length() > 0 && (!mPassDelete || (hasSelection() || (getCursor() < mText.length()))) );
     1.8 +	return ( !mReadOnly && (!mPassDelete || (hasSelection() || (getCursor() < mText.length()))) );
     1.9  }
    1.10  
    1.11  void LLLineEditor::doDelete()
    1.12  {
    1.13 -	if (canDoDelete())
    1.14 +	if (canDoDelete() && mText.length() > 0)
    1.15  	{
    1.16  		// Prepare for possible rollback
    1.17  		LLLineEditorRollback rollback( this );

mercurial