Skip to content

Commit

Permalink
Fix selection after focus-in by mouse in QgsFilterLineEdit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
m-kuhn committed Oct 13, 2014
1 parent 68de043 commit f3cf09f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsfilterlineedit.cpp
Expand Up @@ -52,6 +52,8 @@ void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )
{
if ( !mFocusInEvent )
QLineEdit::mousePressEvent( e );
else
mFocusInEvent = false;
}

void QgsFilterLineEdit::focusInEvent( QFocusEvent* e )
Expand Down

0 comments on commit f3cf09f

Please sign in to comment.