Skip to content
Permalink
Browse files

Remove unused signal + style format

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Nov 7, 2015
1 parent 4cc6650 commit f77d6cd0d0f3794e59b4e087d1e13711dca1b18e
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgslegendfilterbutton.cpp
@@ -43,8 +43,7 @@ QgsLegendFilterButton::QgsLegendFilterButton( QWidget* parent ) :

setMenu( mMenu );

connect( this, SIGNAL( toggled( bool ) ), this, SIGNAL( triggered( bool ) ) );
connect( this, SIGNAL( toggled(bool) ), this, SLOT( onToggle( bool ) ) );
connect( this, SIGNAL( toggled( bool ) ), this, SLOT( onToggle( bool ) ) );
}

QgsLegendFilterButton::~QgsLegendFilterButton()
@@ -53,7 +52,8 @@ QgsLegendFilterButton::~QgsLegendFilterButton()

void QgsLegendFilterButton::onToggle( bool checked )
{
if ( checked && expressionText().isEmpty() ) {
if ( checked && expressionText().isEmpty() )
{
// show the dialog if the current expression is empty
blockSignals( true );
onSetLegendFilterExpression();

0 comments on commit f77d6cd

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