Skip to content

Commit

Permalink
Always emits the expression from the search widget when it changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 16, 2015
1 parent 015622e commit 4897cdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/gui/editorwidgets/core/qgssearchwidgetwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ class GUI_EXPORT QgsSearchWidgetWrapper : public QgsWidgetWrapper

signals:

/**
* Emitted whenever the expression changes
* @param exp The new search expression
*/
void expressionChanged( QString exp );
void expressionChanged();

protected slots:

Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ bool QgsDefaultSearchWidgetWrapper::valid()

void QgsDefaultSearchWidgetWrapper::filterChanged()
{
emit expressionChanged();
emit expressionChanged( mExpression );
}

0 comments on commit 4897cdf

Please sign in to comment.