Skip to content

Commit 4897cdf

Browse files
committedSep 16, 2015
Always emits the expression from the search widget when it changes
1 parent 015622e commit 4897cdf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎src/gui/editorwidgets/core/qgssearchwidgetwrapper.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ class GUI_EXPORT QgsSearchWidgetWrapper : public QgsWidgetWrapper
6969

7070
signals:
7171

72+
/**
73+
* Emitted whenever the expression changes
74+
* @param exp The new search expression
75+
*/
7276
void expressionChanged( QString exp );
73-
void expressionChanged();
7477

7578
protected slots:
7679

‎src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ bool QgsDefaultSearchWidgetWrapper::valid()
109109

110110
void QgsDefaultSearchWidgetWrapper::filterChanged()
111111
{
112-
emit expressionChanged();
112+
emit expressionChanged( mExpression );
113113
}

0 commit comments

Comments
 (0)
Please sign in to comment.