SymbolView : Minor fix to properly remove character at virtualCursorPosition-1
This commit is contained in:
parent
2e390f7329
commit
fd71ff6689
|
@ -223,8 +223,8 @@ bool SearchListView::eventFilter(QObject *obj, QEvent *event)
|
||||||
{
|
{
|
||||||
newText = mSearchBox->text();
|
newText = mSearchBox->text();
|
||||||
|
|
||||||
if(mCursorPosition != 0)
|
if(mCursorPosition > 0)
|
||||||
newText.remove(mCursorPosition, 1);
|
newText.remove(mCursorPosition-1, 1);
|
||||||
|
|
||||||
((mCursorPosition - 1) < 0) ? mCursorPosition = 0 : mCursorPosition--;
|
((mCursorPosition - 1) < 0) ? mCursorPosition = 0 : mCursorPosition--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue