Skip to content
Permalink
Browse files

Fix double clear actions sometimes show in spin boxes

Fixes #19178
  • Loading branch information
nyalldawson committed Jun 13, 2018
1 parent dab4437 commit 494f7bcde1bea1ce505b1db68252c1f523bc6f16
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsfilterlineedit.cpp
@@ -73,6 +73,12 @@ void QgsFilterLineEdit::updateClearIcon()
}
else if ( !showClear && mClearAction )
{
// pretty freakin weird... seems the deleteLater call on the mClearAction
// isn't sufficient to actually remove the action from the line edit, and
// a kind of "ghost" action gets left behind... resulting in duplicate
// clear actions appearing if later we re-create the action.
// in summary: don't remove this "removeAction" call!
removeAction( mClearAction );
mClearAction->deleteLater();
mClearAction = nullptr;
}

0 comments on commit 494f7bc

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