Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reset options page when search bar is cleared
  • Loading branch information
CodeBardian authored and nyalldawson committed May 24, 2023
1 parent 0a68d2c commit 36d4022
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/gui/qgsoptionsdialoghighlightwidget.cpp
Expand Up @@ -95,12 +95,6 @@ bool QgsOptionsDialogHighlightWidget::searchHighlight( const QString &text )
if ( !mWidget )
return found;

if ( mChangedStyle )
{
reset();
mChangedStyle = false;
}

if ( mEventFilter )
{
mWidget->removeEventFilter( mEventFilter );
Expand All @@ -112,6 +106,17 @@ bool QgsOptionsDialogHighlightWidget::searchHighlight( const QString &text )
{
found = searchText( mSearchText );
}
else
{
reset();
mChangedStyle = false;
}

if ( mChangedStyle )
{
reset();
mChangedStyle = false;
}

if ( found )
{
Expand Down

0 comments on commit 36d4022

Please sign in to comment.