Skip to content

Commit

Permalink
Fix connected widgets do not update in some circumstances
Browse files Browse the repository at this point in the history
(cherry picked from commit 0058dfc)
  • Loading branch information
nyalldawson committed Jan 15, 2019
1 parent 8ad544d commit 1e15c9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgspropertyoverridebutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ void QgsPropertyOverrideButton::showExpressionDialog()
mProperty.setExpressionString( mExpressionString );
mProperty.setTransformer( nullptr );
setActivePrivate( !mExpressionString.isEmpty() );
updateSiblingWidgets( isActive() );
updateGui();
emit changed();
}
Expand Down Expand Up @@ -636,6 +637,7 @@ void QgsPropertyOverrideButton::showAssistant()
widget->updateProperty( this->mProperty );
mExpressionString = this->mProperty.asExpression();
mFieldName = this->mProperty.field();
updateSiblingWidgets( isActive() );
this->emit changed();
} );

Expand Down Expand Up @@ -666,6 +668,7 @@ void QgsPropertyOverrideButton::showAssistant()
mExpressionString = mProperty.asExpression();
mFieldName = mProperty.field();
widget->acceptPanel();
updateSiblingWidgets( isActive() );
updateGui();

emit changed();
Expand Down

0 comments on commit 1e15c9f

Please sign in to comment.