Skip to content

Commit

Permalink
Merge pull request #2629 from SebDieBln/FixStyleManagerGroupingMode
Browse files Browse the repository at this point in the history
[StyleManager] Keep group actions enabled while in grouping mode (fixes #14049)
  • Loading branch information
nyalldawson committed Jan 5, 2016
2 parents adf8385 + a943d95 commit 90eaba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgsstylev2managerdialog.cpp
Original file line number Diff line number Diff line change
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 90eaba9

Please sign in to comment.