Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
keep group actions enabled while in grouping mode (fixes #14049)
Group actions must be enabled to have the option of leaving grouping mode again.
  • Loading branch information
SebDieBln committed Jan 3, 2016
1 parent 0df4cbe commit a943d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgsstylev2managerdialog.cpp
Expand Up @@ -1252,7 +1252,7 @@ void QgsStyleV2ManagerDialog::enableSymbolInputs( bool enable )
groupTree->setEnabled( enable );
btnAddGroup->setEnabled( enable );
btnRemoveGroup->setEnabled( enable );
btnManageGroups->setEnabled( enable );
btnManageGroups->setEnabled( enable || mGrouppingMode ); // always enabled in grouping mode, as it is the only way to leave grouping mode
searchBox->setEnabled( enable );
tagsLineEdit->setEnabled( enable );
}
Expand All @@ -1261,7 +1261,7 @@ void QgsStyleV2ManagerDialog::enableGroupInputs( bool enable )
{
btnAddGroup->setEnabled( enable );
btnRemoveGroup->setEnabled( enable );
btnManageGroups->setEnabled( enable );
btnManageGroups->setEnabled( enable || mGrouppingMode ); // always enabled in grouping mode, as it is the only way to leave grouping mode
}

void QgsStyleV2ManagerDialog::enableItemsForGroupingMode( bool enable )
Expand Down

0 comments on commit a943d95

Please sign in to comment.