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

meow-7.2.2
maxim_productengine 2018-02-14 17:55:37 +02:00
parent 82feb5083f
commit f5dbc9ea83
1 changed files with 2 additions and 2 deletions

View File

@ -1719,12 +1719,12 @@ BOOL LLLineEditor::handleUnicodeCharHere(llwchar uni_char)
BOOL LLLineEditor::canDoDelete() const
{
return ( !mReadOnly && mText.length() > 0 && (!mPassDelete || (hasSelection() || (getCursor() < mText.length()))) );
return ( !mReadOnly && (!mPassDelete || (hasSelection() || (getCursor() < mText.length()))) );
}
void LLLineEditor::doDelete()
{
if (canDoDelete())
if (canDoDelete() && mText.length() > 0)
{
// Prepare for possible rollback
LLLineEditorRollback rollback( this );