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 42fa83c commit 5aa69ce13cb46701571f179281b85b8d44683db3
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgscollapsiblegroupbox.cpp
@@ -408,6 +408,7 @@ void QgsCollapsibleGroupBoxBasic::updateStyle()

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

if ( !isVisible() )
@@ -444,7 +445,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 5aa69ce

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