Skip to content
Permalink
Browse files

Fix constant background CPU usage

(cherry picked from commit 59583e9)
  • Loading branch information
nyalldawson authored and jef-n committed Sep 17, 2016
1 parent 546ae28 commit f9219b3bdbcf906f43afa140479141f06d1ed68a
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsfilterlineedit.cpp
@@ -46,11 +46,13 @@ QgsFilterLineEdit::QgsFilterLineEdit( QWidget* parent, const QString& nullValue

void QgsFilterLineEdit::setShowClearButton( bool visible )
{
bool changed = mClearButtonVisible != visible;
mClearButtonVisible = visible;
if ( !visible )
mClearHover = false;

update();
if ( changed )
update();
}

void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )

1 comment on commit f9219b3

@nyalldawson

This comment has been minimized.

Copy link
Collaborator Author

@nyalldawson nyalldawson commented on f9219b3 Sep 17, 2016

Thanks @jef-n!

Please sign in to comment.
You can’t perform that action at this time.