Skip to content
Permalink
Browse files

Only emit QgsCollapsibleGroupBoxBasic::collapsedStateChanged when sta…

…te really has changed
  • Loading branch information
manisandro authored and nyalldawson committed Dec 15, 2015
1 parent d984148 commit 221c4e0468d3dcf49fce3c4d02bbeb341de0753c
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgscollapsiblegroupbox.cpp
@@ -402,6 +402,7 @@ void QgsCollapsibleGroupBoxBasic::updateStyle()

void QgsCollapsibleGroupBoxBasic::setCollapsed( bool collapse )
{
bool changed = collapse != mCollapsed;
mCollapsed = collapse;

if ( !isVisible() )
@@ -438,7 +439,8 @@ void QgsCollapsibleGroupBoxBasic::setCollapsed( bool collapse )
mParentScrollArea->setUpdatesEnabled( true );
}
// emit signal for connections using collapsed state
emit collapsedStateChanged( isCollapsed() );
if ( changed )
emit collapsedStateChanged( isCollapsed() );
}

void QgsCollapsibleGroupBoxBasic::collapseExpandFixes()

0 comments on commit 221c4e0

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