Skip to content

Commit f3cf09f

Browse files
committedOct 13, 2014
Fix selection after focus-in by mouse in QgsFilterLineEdit
After focusing a QgsFilterLineEdit with the mouse, the end of the selection was "attached" to the end of the content. This was caused by overwriting Qt's mousePressEvent, that is responsible for handling the selection without handing back the responsibility after the focus in event was finished. Fix #11373
1 parent 68de043 commit f3cf09f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/qgsfilterlineedit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )
5252
{
5353
if ( !mFocusInEvent )
5454
QLineEdit::mousePressEvent( e );
55+
else
56+
mFocusInEvent = false;
5557
}
5658

5759
void QgsFilterLineEdit::focusInEvent( QFocusEvent* e )

0 commit comments

Comments
 (0)
Please sign in to comment.